Method | Description | |
---|---|---|
__construct ( Swift_CharacterReaderFactory $factory, string $charset ) | Create a new CharacterStream with the given $chars, if set. | |
flushContents ( ) | Empty the stream and reset the internal pointer. | |
importByteStream ( Swift_OutputByteStream $os ) | Overwrite this character stream using the byte sequence in the byte stream. | |
importString ( string $string ) | Import a string a bytes into this CharacterStream, overwriting any existing data in the stream. | |
read ( integer $length ) : string | Read $length characters from the stream and move the internal pointer $length further into the stream. | |
readBytes ( integer $length ) : integer[] | Read $length characters from the stream and return a 1-dimensional array containing there octet values. | |
setCharacterReaderFactory ( Swift_CharacterReaderFactory $factory ) | Set the CharacterReaderFactory for multi charset support. | |
setCharacterSet ( string $charset ) | Set the character set used in this CharacterStream. | |
setPointer ( integer $charOffset ) | Move the internal pointer to $charOffset in the stream. | |
write ( string $chars ) | Write $chars to the end of the stream. |
Method | Description | |
---|---|---|
_initializeMaps ( ) | ||
_reloadBuffer ( $fp, $len ) |
public __construct ( Swift_CharacterReaderFactory $factory, string $charset ) | ||
$factory | Swift_CharacterReaderFactory | for loading validators |
$charset | string | used in the stream |
public flushContents ( ) |
public importByteStream ( Swift_OutputByteStream $os ) | ||
$os | Swift_OutputByteStream | output stream to read from |
public importString ( string $string ) | ||
$string | string |
public setCharacterReaderFactory ( Swift_CharacterReaderFactory $factory ) | ||
$factory | Swift_CharacterReaderFactory |
public setCharacterSet ( string $charset ) | ||
$charset | string |
public setPointer ( integer $charOffset ) | ||
$charOffset | integer |