PHP Class Swift_Mime_HeaderEncoder_QpHeaderEncoder, Halite

Author: Chris Corbyn
Inheritance: extends Swift_Encoder_QpEncoder, implements Swift_Mime_HeaderEncoder
Show file Open project: HaliteChallenge/Halite

Public Methods

Method Description
__construct ( Swift_CharacterStream $charStream ) Creates a new QpHeaderEncoder for the given CharacterStream.
encodeString ( string $string, integer $firstLineOffset, integer $maxLineLength ) : string Takes an unencoded string and produces a QP encoded string from it.
getName ( ) : string Get the name of this encoding scheme.

Protected Methods

Method Description
initSafeMap ( )

Method Details

__construct() public method

Creates a new QpHeaderEncoder for the given CharacterStream.
public __construct ( Swift_CharacterStream $charStream )
$charStream Swift_CharacterStream to use for reading characters

encodeString() public method

Takes an unencoded string and produces a QP encoded string from it.
public encodeString ( string $string, integer $firstLineOffset, integer $maxLineLength ) : string
$string string string to encode
$firstLineOffset integer optional
$maxLineLength integer optional, 0 indicates the default of 76 chars
return string

getName() public method

Returns the string 'Q'.
public getName ( ) : string
return string

initSafeMap() protected method

protected initSafeMap ( )