TYPO3  7.6
RawContentEncoder.php
Go to the documentation of this file.
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 
18 {
28  public function encodeString($string, $firstLineOffset = 0, $maxLineLength = 0)
29  {
30  return $string;
31  }
32 
41  public function encodeByteStream(Swift_OutputByteStream $os, Swift_InputByteStream $is, $firstLineOffset = 0, $maxLineLength = 0)
42  {
43  while (false !== ($bytes = $os->read(8192))) {
44  $is->write($bytes);
45  }
46  }
47 
53  public function getName()
54  {
55  return 'raw';
56  }
57 
61  public function charsetChanged($charset)
62  {
63  }
64 }