Class Swift_Mime_ContentEncoder_PlainContentEncoder

InheritanceSwift_Mime_ContentEncoder_PlainContentEncoder
ImplementsSwift_Mime_ContentEncoder

Handles binary/7/8-bit Transfer Encoding in Swift Mailer.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Creates a new PlainContentEncoder with $name (probably 7bit or 8bit). Swift_Mime_ContentEncoder_PlainContentEncoder
charsetChanged() Not used. Swift_Mime_ContentEncoder_PlainContentEncoder
encodeByteStream() Encode stream $in to stream $out. Swift_Mime_ContentEncoder_PlainContentEncoder
encodeString() Encode a given string to produce an encoded string. Swift_Mime_ContentEncoder_PlainContentEncoder
getName() Get the name of this encoding scheme. Swift_Mime_ContentEncoder_PlainContentEncoder

Method Details

__construct() public method

Creates a new PlainContentEncoder with $name (probably 7bit or 8bit).

public void __construct ( $name, $canonical false )
$name string
$canonical bool

If canonicalization transformation should be done.

charsetChanged() public method

Not used.

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

Encode stream $in to stream $out.

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

Ignored

$maxLineLength int

Optional, 0 means no wrapping will occur

encodeString() public method

Encode a given string to produce an encoded string.

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

Ignored

$maxLineLength int
  • 0 means no wrapping will occur
getName() public method

Get the name of this encoding scheme.

public string getName ( )