\Swift_Mime_HeaderEncoder_QpHeaderEncoder
Handles Quoted Printable (Q) Header Encoding in Swift Mailer.
- Author: Chris Corbyn
Synopsis
class Swift_Mime_HeaderEncoder_QpHeaderEncoder
extends Swift_Encoder_QpEncoder
implements
Swift_Mime_HeaderEncoder
{
- // Inherited members from Swift_Encoder_QpEncoder
- protected Swift_CharacterStream $_charStream;
- protected Swift_StreamFilter $_filter;
- protected array $_qpMap;
- protected array $_safeMapShare;
- protected array $_safeMap;
- // methods
- public void __construct()
- protected void initSafeMap()
- public string getName()
- public string encodeString()
- // Inherited methods from Swift_Encoder_QpEncoder
- public void __construct()
- public void __sleep()
- public void __wakeup()
- protected void getSafeMapShareId()
- protected void initSafeMap()
- public string encodeString()
- public void charsetChanged()
- protected string _encodeByteSequence()
- protected array _nextSequence()
- protected string _standardize()
Hierarchy
Members
protected
- $_charStream
—
Swift_CharacterStream
The CharacterStream used for reading characters (as opposed to bytes). - $_filter
—
Swift_StreamFilter
A filter used if input should be canonicalized. - $_qpMap
—
array
Pre-computed QP for HUGE optimization. - $_safeMap
—
array
A map of non-encoded ascii characters.
Methods
protected
public
- __construct() — Creates a new QpHeaderEncoder for the given CharacterStream.
- encodeString() — Takes an unencoded string and produces a QP encoded string from it.
- getName() — Get the name of this encoding scheme.
Inherited from Swift_Encoder_QpEncoder
protected
- _encodeByteSequence() — Encode the given byte array into a verbatim QP form.
- _nextSequence() — Get the next sequence of bytes to read from the char stream.
- _standardize() — Make sure CRLF is correct and HT/SPACE are in valid places.
- initSafeMap()
public
- __sleep()
- __wakeup()
- charsetChanged() — Updates the charset used.
- encodeString() — Takes an unencoded string and produces a QP encoded string from it.