Class Swift_Mime_HeaderEncoder_QpHeaderEncoder
| Inheritance | Swift_Mime_HeaderEncoder_QpHeaderEncoder » Swift_Encoder_QpEncoder |
|---|---|
| Implements | Swift_Encoder, Swift_Mime_HeaderEncoder |
Handles Quoted Printable (Q) Header Encoding in Swift Mailer.
Protected Properties
Public Methods
| Method | Description | Defined 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
| Method | Description | Defined 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
Creates a new QpHeaderEncoder for the given CharacterStream.
| public void __construct ( Swift_CharacterStream $charStream ) | ||
| $charStream | Swift_CharacterStream | To use for reading characters |
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 |
Get the name of this encoding scheme.
Returns the string 'Q'.
| public string getName ( ) |
| protected void initSafeMap ( ) |