Class Swift_Mime_ContentEncoder_NativeQpContentEncoder

InheritanceSwift_Mime_ContentEncoder_NativeQpContentEncoder
ImplementsSwift_Mime_ContentEncoder

Handles Quoted Printable (QP) Transfer Encoding in Swift Mailer using the PHP core function.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Swift_Mime_ContentEncoder_NativeQpContentEncoder
charsetChanged() Notify this observer that the entity's charset has changed. Swift_Mime_ContentEncoder_NativeQpContentEncoder
encodeByteStream() Encode $in to $out. Swift_Mime_ContentEncoder_NativeQpContentEncoder
encodeString() Encode a given string to produce an encoded string. Swift_Mime_ContentEncoder_NativeQpContentEncoder
getName() Get the MIME name of this content encoding scheme. Swift_Mime_ContentEncoder_NativeQpContentEncoder

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
_standardize() Make sure CRLF is correct and HT/SPACE are in valid places. Swift_Mime_ContentEncoder_NativeQpContentEncoder

Method Details

__construct() public method

public void __construct ( $charset null )
$charset null|string
_standardize() protected method

Make sure CRLF is correct and HT/SPACE are in valid places.

protected string _standardize ( $string )
$string string
charsetChanged() public method

Notify this observer that the entity's charset has changed.

public void charsetChanged ( $charset )
$charset string
encodeByteStream() public method

Encode $in to $out.

public void encodeByteStream ( Swift_OutputByteStream $os, Swift_InputByteStream $is, $firstLineOffset 0, $maxLineLength 0 )
$os Swift_OutputByteStream

To read from

$is Swift_InputByteStream

To write to

$firstLineOffset int
$maxLineLength int

0 indicates the default length for this encoding

throws RuntimeException
encodeString() public method

Encode a given string to produce an encoded string.

public string encodeString ( $string, $firstLineOffset 0, $maxLineLength 0 )
$string string
$firstLineOffset int

If first line needs to be shorter

$maxLineLength int

0 indicates the default length for this encoding

throws RuntimeException
getName() public method

Get the MIME name of this content encoding scheme.

public string getName ( )