TYPO3  7.6
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Swift_Mime_ContentEncoder_QpContentEncoderProxy Class Reference
Inheritance diagram for Swift_Mime_ContentEncoder_QpContentEncoderProxy:
Swift_Mime_ContentEncoder Swift_Encoder Swift_Mime_CharsetObserver

Public Member Functions

 __construct (Swift_Mime_ContentEncoder_QpContentEncoder $safeEncoder, Swift_Mime_ContentEncoder_NativeQpContentEncoder $nativeEncoder, $charset)
 
 __clone ()
 
 charsetChanged ($charset)
 
 encodeByteStream (Swift_OutputByteStream $os, Swift_InputByteStream $is, $firstLineOffset=0, $maxLineLength=0)
 
 getName ()
 
 encodeString ($string, $firstLineOffset=0, $maxLineLength=0)
 

Private Member Functions

 getEncoder ()
 

Private Attributes

 $safeEncoder
 
 $nativeEncoder
 
 $charset
 

Detailed Description

Proxy for quoted-printable content encoders.

Switches on the best QP encoder implementation for current charset.

Author
Jean-François Simon jeanf.nosp@m.ranc.nosp@m.ois.s.nosp@m.imon.nosp@m.@sens.nosp@m.iola.nosp@m.bs.co.nosp@m.m

Definition at line 18 of file QpContentEncoderProxy.php.

Constructor & Destructor Documentation

__construct ( Swift_Mime_ContentEncoder_QpContentEncoder  $safeEncoder,
Swift_Mime_ContentEncoder_NativeQpContentEncoder  $nativeEncoder,
  $charset 
)

Constructor.

Parameters
Swift_Mime_ContentEncoder_QpContentEncoder$safeEncoder
Swift_Mime_ContentEncoder_NativeQpContentEncoder$nativeEncoder
string | null$charset

Definition at line 42 of file QpContentEncoderProxy.php.

References $charset, $nativeEncoder, and $safeEncoder.

Member Function Documentation

__clone ( )

Make a deep copy of object.

Definition at line 52 of file QpContentEncoderProxy.php.

References $nativeEncoder, and $safeEncoder.

charsetChanged (   $charset)

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

Parameters
string$charset
}

Implements Swift_Mime_CharsetObserver.

Definition at line 61 of file QpContentEncoderProxy.php.

References $charset.

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

{Encode $in to $out.

Parameters
Swift_OutputByteStream$osto read from
Swift_InputByteStream$isto write to
int$firstLineOffset
int$maxLineLength- 0 indicates the default length for this encoding
}

Implements Swift_Mime_ContentEncoder.

Definition at line 69 of file QpContentEncoderProxy.php.

References getEncoder().

encodeString (   $string,
  $firstLineOffset = 0,
  $maxLineLength = 0 
)

{Encode a given string to produce an encoded string.

Parameters
string$string
int$firstLineOffsetif first line needs to be shorter
int$maxLineLength- 0 indicates the default length for this encoding
Returns
string
}

Implements Swift_Encoder.

Definition at line 85 of file QpContentEncoderProxy.php.

References getEncoder().

getEncoder ( )
private
Returns
Swift_Mime_ContentEncoder

Definition at line 93 of file QpContentEncoderProxy.php.

References $safeEncoder.

Referenced by encodeByteStream(), and encodeString().

getName ( )

{Get the MIME name of this content encoding scheme.

Returns
string
}

Implements Swift_Mime_ContentEncoder.

Definition at line 77 of file QpContentEncoderProxy.php.

Member Data Documentation

$charset
private

Definition at line 33 of file QpContentEncoderProxy.php.

Referenced by __construct(), and charsetChanged().

$nativeEncoder
private

Definition at line 28 of file QpContentEncoderProxy.php.

Referenced by __clone(), and __construct().

$safeEncoder
private

Definition at line 23 of file QpContentEncoderProxy.php.

Referenced by __clone(), __construct(), and getEncoder().