Open Monograph Press
3.3.0
EightBitContentEncoder.php
1
<?php
2
3
/*
4
* This file is part of the Symfony package.
5
*
6
* (c) Fabien Potencier <fabien@symfony.com>
7
*
8
* For the full copyright and license information, please view the LICENSE
9
* file that was distributed with this source code.
10
*/
11
12
namespace
Symfony\Component\Mime\Encoder
;
13
17
final
class
EightBitContentEncoder
implements
ContentEncoderInterface
18
{
19
public
function
encodeByteStream
($stream,
int
$maxLineLength = 0): iterable
20
{
21
while
(!feof($stream)) {
22
yield fread($stream, 16372);
23
}
24
}
25
26
public
function
getName
(): string
27
{
28
return
'8bit'
;
29
}
30
31
public
function
encodeString
(
string
$string, ?
string
$charset =
'utf-8'
,
int
$firstLineOffset = 0,
int
$maxLineLength = 0): string
32
{
33
return
$string;
34
}
35
}
Symfony\Component\Mime\Encoder\EightBitContentEncoder\getName
getName()
Definition:
EightBitContentEncoder.php:26
Symfony\Component\Mime\Encoder
Definition:
AddressEncoderInterface.php:12
Symfony\Component\Mime\Encoder\EightBitContentEncoder\encodeByteStream
encodeByteStream($stream, int $maxLineLength=0)
Definition:
EightBitContentEncoder.php:19
Symfony\Component\Mime\Encoder\EightBitContentEncoder\encodeString
encodeString(string $string, ?string $charset='utf-8', int $firstLineOffset=0, int $maxLineLength=0)
Definition:
EightBitContentEncoder.php:31
Symfony\Component\Mime\Encoder\EightBitContentEncoder
Definition:
EightBitContentEncoder.php:17
Symfony\Component\Mime\Encoder\ContentEncoderInterface
Definition:
ContentEncoderInterface.php:17
plugins
paymethod
paypal
vendor
symfony
mime
Encoder
EightBitContentEncoder.php
Generated on Fri Aug 28 2020 14:52:08 for Open Monograph Press by
1.8.17