class EightBitContentEncoder
@author Fabien Potencier <fabien@symfony.com>
Hierarchy
- class \Symfony\Component\Mime\Encoder\EightBitContentEncoder implements \Symfony\Component\Mime\Encoder\ContentEncoderInterface
Expanded class hierarchy of EightBitContentEncoder
1 file declares its use of EightBitContentEncoder
- TextPart.php in vendor/
symfony/ mime/ Part/ TextPart.php
File
-
vendor/
symfony/ mime/ Encoder/ EightBitContentEncoder.php, line 17
Namespace
Symfony\Component\Mime\EncoderView source
final class EightBitContentEncoder implements ContentEncoderInterface {
public function encodeByteStream($stream, int $maxLineLength = 0) : iterable {
while (!feof($stream)) {
(yield fread($stream, 16372));
}
}
public function getName() : string {
return '8bit';
}
public function encodeString(string $string, ?string $charset = 'utf-8', int $firstLineOffset = 0, int $maxLineLength = 0) : string {
return $string;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
EightBitContentEncoder::encodeByteStream | public | function | Encodes the stream to a Generator. | Overrides ContentEncoderInterface::encodeByteStream |
EightBitContentEncoder::encodeString | public | function | Encode a given string to produce an encoded string. | Overrides EncoderInterface::encodeString |
EightBitContentEncoder::getName | public | function | Gets the MIME name of this content encoding scheme. | Overrides ContentEncoderInterface::getName |