ContentEncoder.php 915B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /*
  3. * This file is part of SwiftMailer.
  4. * (c) 2004-2009 Chris Corbyn
  5. *
  6. * For the full copyright and license information, please view the LICENSE
  7. * file that was distributed with this source code.
  8. */
  9. /**
  10. * Interface for all Transfer Encoding schemes.
  11. * @package Swift
  12. * @subpackage Mime
  13. * @author Chris Corbyn
  14. */
  15. interface Swift_Mime_ContentEncoder extends Swift_Encoder
  16. {
  17. /**
  18. * Encode $in to $out.
  19. * @param Swift_OutputByteStream $os to read from
  20. * @param Swift_InputByteStream $is to write to
  21. * @param int $firstLineOffset
  22. * @param int $maxLineLength - 0 indicates the default length for this encoding
  23. */
  24. public function encodeByteStream(
  25. Swift_OutputByteStream $os, Swift_InputByteStream $is, $firstLineOffset = 0,
  26. $maxLineLength = 0);
  27. /**
  28. * Get the MIME name of this content encoding scheme.
  29. * @return string
  30. */
  31. public function getName();
  32. }