Interface for all Transfer Encoding schemes.

package Swift
subpackage Mime
author Chris Corbyn

 Methods

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

charsetChanged(string $charset) 
Inherited
inherited_from \Swift_Mime_CharsetObserver::charsetChanged()
inherited_from \Swift_Encoder::charsetChanged()

Parameters

$charset

string

Encode $in to $out.

encodeByteStream(\Swift_OutputByteStream $os, \Swift_InputByteStream $is, int $firstLineOffset, int $maxLineLength) 

Parameters

$os

\Swift_OutputByteStream

to read from

$is

\Swift_InputByteStream

to write to

$firstLineOffset

int

$maxLineLength

int
  • 0 indicates the default length for this encoding

Encode a given string to produce an encoded string.

encodeString(string $string, int $firstLineOffset, int $maxLineLength) : string
Inherited
inherited_from \Swift_Encoder::encodeString()

Parameters

$string

string

$firstLineOffset

int

if first line needs to be shorter

$maxLineLength

int
  • 0 indicates the default length for this encoding

Returns

string

Get the MIME name of this content encoding scheme.

getName() : string

Returns

string