Swift_Mime_ContentEncoder_Base64ContentEncoder
extends Swift_Encoder_Base64Encoder
in package
implements
Swift_Mime_ContentEncoder
Handles Base 64 Transfer Encoding in Swift Mailer.
Tags
Interfaces, Classes and Traits
- Swift_Mime_ContentEncoder
- Interface for all Transfer Encoding schemes.
Table of Contents
- charsetChanged() : mixed
- Does nothing.
- encodeByteStream() : mixed
- Encode stream $in to stream $out.
- encodeString() : string
- Takes an unencoded string and produces a Base64 encoded string from it.
- getName() : string
- Get the name of this encoding scheme.
Methods
charsetChanged()
Does nothing.
public
charsetChanged(mixed $charset) : mixed
Parameters
- $charset : mixed
Return values
mixed —encodeByteStream()
Encode stream $in to stream $out.
public
encodeByteStream(Swift_OutputByteStream $os, Swift_InputByteStream $is, int $firstLineOffset, mixed $maxLineLength) : mixed
Parameters
- $os : Swift_OutputByteStream
-
to read from
- $is : Swift_InputByteStream
-
to write to
- $firstLineOffset : int
- $maxLineLength : mixed
-
- 0 indicates the default length for this encoding
Return values
mixed —encodeString()
Takes an unencoded string and produces a Base64 encoded string from it.
public
encodeString(string $string, int $firstLineOffset, int $maxLineLength) : string
Base64 encoded strings have a maximum line length of 76 characters. If the first line needs to be shorter, indicate the difference with $firstLineOffset.
Parameters
- $string : string
-
to encode
- $firstLineOffset : int
- $maxLineLength : int
-
optional, 0 indicates the default of 76 bytes
Return values
string —getName()
Get the name of this encoding scheme.
public
getName() : string
Returns the string 'base64'.