ContentEncoder.php 969 B

12345678910111213141516171819202122232425262728293031323334
  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. * @author Chris Corbyn
  13. */
  14. interface Swift_Mime_ContentEncoder extends Swift_Encoder
  15. {
  16. /**
  17. * Encode $in to $out.
  18. *
  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(Swift_OutputByteStream $os, Swift_InputByteStream $is, $firstLineOffset = 0, $maxLineLength = 0);
  25. /**
  26. * Get the MIME name of this content encoding scheme.
  27. *
  28. * @return string
  29. */
  30. public function getName();
  31. }