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