Class Swift_Mime_HeaderEncoder_QpHeaderEncoder

InheritanceSwift_Mime_HeaderEncoder_QpHeaderEncoder » Swift_Encoder_QpEncoder
ImplementsSwift_Encoder, Swift_Mime_HeaderEncoder

Handles Quoted Printable (Q) Header Encoding in Swift Mailer.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__clone() Make a deep copy of object. Swift_Encoder_QpEncoder
__construct() Creates a new QpHeaderEncoder for the given CharacterStream. Swift_Mime_HeaderEncoder_QpHeaderEncoder
__sleep() Swift_Encoder_QpEncoder
__wakeup() Swift_Encoder_QpEncoder
charsetChanged() Updates the charset used. Swift_Encoder_QpEncoder
encodeString() Takes an unencoded string and produces a QP encoded string from it. Swift_Mime_HeaderEncoder_QpHeaderEncoder
getName() Get the name of this encoding scheme. Swift_Mime_HeaderEncoder_QpHeaderEncoder

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
_encodeByteSequence() Encode the given byte array into a verbatim QP form. Swift_Encoder_QpEncoder
_nextSequence() Get the next sequence of bytes to read from the char stream. Swift_Encoder_QpEncoder
_standardize() Make sure CRLF is correct and HT/SPACE are in valid places. Swift_Encoder_QpEncoder
getSafeMapShareId() Swift_Encoder_QpEncoder
initSafeMap() Swift_Mime_HeaderEncoder_QpHeaderEncoder

Method Details

__construct() public method

Creates a new QpHeaderEncoder for the given CharacterStream.

public void __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 string encodeString ( $string, $firstLineOffset 0, $maxLineLength 0 )
$string string

String to encode

$firstLineOffset int

Optional

$maxLineLength int

Optional, 0 indicates the default of 76 chars

getName() public method

Get the name of this encoding scheme.

Returns the string 'Q'.

public string getName ( )
initSafeMap() protected method

protected void initSafeMap ( )