A CharacterStream implementation which stores characters in an internal array.
Methods
The constructor
__construct(\Swift_CharacterReaderFactory $factory, \unknown_type $charset)
Parameters
$charset
\unknown_type
Empty the stream and reset the internal pointer.
flushContents()
Overwrite this character stream using the byte sequence in the byte stream.
importByteStream(\Swift_OutputByteStream $os)
Import a string a bytes into this CharacterStream, overwriting any existing
data in the stream.
importString(string $string)
Parameters
$string
string
Read $length characters from the stream and move the internal pointer
$length further into the stream.
read(int $length) : string
Parameters
$length
int
Returns
string
Read $length characters from the stream and return a 1-dimensional array
containing there octet values.
readBytes(int $length) : int[]
Parameters
$length
int
Returns
int[]
Set the CharacterReaderFactory for multi charset support.
setCharacterReaderFactory(\Swift_CharacterReaderFactory $factory)
Set the character set used in this CharacterStream.
setCharacterSet(string $charset)
Parameters
$charset
string
Move the internal pointer to $charOffset in the stream.
setPointer(int $charOffset)
Parameters
$charOffset
int
Write $chars to the end of the stream.
write(string $chars)
Properties
$_currentPos : \unknown_type