TYPO3
7.6
Users
bogdan
Projects
Kapeli
Resources
Dash
Docsets
TYPO3
src
vendor
swiftmailer
swiftmailer
lib
classes
Swift
Mime
ContentEncoder
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
17
class
Swift_Mime_ContentEncoder_RawContentEncoder
implements
Swift_Mime_ContentEncoder
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
}
Generated on Wed Nov 11 2015 01:52:02 for TYPO3 by
1.8.3