Open Journal Systems  3.3.0
Symfony\Component\Mime\Encoder\EightBitContentEncoder Class Reference
Inheritance diagram for Symfony\Component\Mime\Encoder\EightBitContentEncoder:
Symfony\Component\Mime\Encoder\ContentEncoderInterface Symfony\Component\Mime\Encoder\EncoderInterface

Public Member Functions

 encodeByteStream ($stream, int $maxLineLength=0)
 
 encodeString (string $string, ?string $charset='utf-8', int $firstLineOffset=0, int $maxLineLength=0)
 
 getName ()
 

Detailed Description

Author
Fabien Potencier fabie.nosp@m.n@sy.nosp@m.mfony.nosp@m..com

Definition at line 17 of file EightBitContentEncoder.php.

Member Function Documentation

◆ encodeByteStream()

Symfony\Component\Mime\Encoder\EightBitContentEncoder::encodeByteStream (   $stream,
int  $maxLineLength = 0 
)

Encodes the stream to a Generator.

Parameters
resource$stream

Implements Symfony\Component\Mime\Encoder\ContentEncoderInterface.

Definition at line 19 of file EightBitContentEncoder.php.

◆ encodeString()

Symfony\Component\Mime\Encoder\EightBitContentEncoder::encodeString ( string  $string,
?string  $charset = 'utf-8',
int  $firstLineOffset = 0,
int  $maxLineLength = 0 
)

Encode a given string to produce an encoded string.

Parameters
int$firstLineOffsetif first line needs to be shorter
int$maxLineLength- 0 indicates the default length for this encoding

Implements Symfony\Component\Mime\Encoder\EncoderInterface.

Definition at line 31 of file EightBitContentEncoder.php.

◆ getName()

Symfony\Component\Mime\Encoder\EightBitContentEncoder::getName ( )

Gets the MIME name of this content encoding scheme.

Implements Symfony\Component\Mime\Encoder\ContentEncoderInterface.

Definition at line 26 of file EightBitContentEncoder.php.


The documentation for this class was generated from the following file: