ContentEncoder.php 1014B

12345678910111213141516171819202122232425262728293031323334353637
  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. *
  12. * @package Swift
  13. * @subpackage Mime
  14. * @author Chris Corbyn
  15. */
  16. interface Swift_Mime_ContentEncoder extends Swift_Encoder
  17. {
  18. /**
  19. * Encode $in to $out.
  20. *
  21. * @param Swift_OutputByteStream $os to read from
  22. * @param Swift_InputByteStream $is to write to
  23. * @param integer $firstLineOffset
  24. * @param integer $maxLineLength - 0 indicates the default length for this encoding
  25. */
  26. public function encodeByteStream(Swift_OutputByteStream $os, Swift_InputByteStream $is, $firstLineOffset = 0, $maxLineLength = 0);
  27. /**
  28. * Get the MIME name of this content encoding scheme.
  29. *
  30. * @return string
  31. */
  32. public function getName();
  33. }