Class Swift_CharacterStream_ArrayCharacterStream
A CharacterStream implementation which stores characters in an internal array.
- Swift_CharacterStream_ArrayCharacterStream implements Swift_CharacterStream
Author: Chris Corbyn
Located at vendors/swiftmailer/lib/classes/Swift/CharacterStream/ArrayCharacterStream.php
Methods summary
public
|
#
__construct(
Create a new CharacterStream with the given $chars, if set. |
public
|
|
public
|
#
setCharacterReaderFactory(
Set the CharacterReaderFactory for multi charset support. |
public
|
#
importByteStream(
Overwrite this character stream using the byte sequence in the byte stream. |
public
|
#
importString( string $string )
Import a string a bytes into this CharacterStream, overwriting any existing data in the stream. |
public
string
|
#
read( integer $length )
Read $length characters from the stream and move the internal pointer $length further into the stream. |
public
int[]
|
#
readBytes( integer $length )
Read $length characters from the stream and return a 1-dimensional array containing there octet values. |
public
|
|
public
|
|
public
|
|
private
|
|
private static
|
Magic methods summary
Properties summary
private static
mixed
|
$_charMap |
#
A map of byte values and their respective characters |
private static
mixed
|
$_byteMap |
#
A map of characters and their derivative byte values |
private
mixed
|
$_charReader |
#
The char reader (lazy-loaded) for the current charset |
private
mixed
|
$_charReaderFactory |
#
A factory for creatiing CharacterReader instances |
private
mixed
|
$_charset |
#
The character set this stream is using |
private
array
|
$_array |
#
Array of characters |
private
array
|
$_array_size |
#
Size of the array of character |
private
integer
|
$_offset |
#
The current character offset in the stream |