TYPO3
7.6
|
Public Member Functions | |
setCharacterSet ($charset) | |
setCharacterReaderFactory (Swift_CharacterReaderFactory $factory) | |
importByteStream (Swift_OutputByteStream $os) | |
importString ($string) | |
read ($length) | |
readBytes ($length) | |
write ($chars) | |
setPointer ($charOffset) | |
flushContents () | |
An abstract means of reading and writing data in terms of characters as opposed to bytes.
Classes implementing this interface may use a subsystem which requires less memory than working with large strings of data.
Definition at line 20 of file CharacterStream.php.
flushContents | ( | ) |
Empty the stream and reset the internal pointer.
Implemented in Swift_CharacterStream_ArrayCharacterStream, and Swift_CharacterStream_NgCharacterStream.
importByteStream | ( | Swift_OutputByteStream | $os | ) |
Overwrite this character stream using the byte sequence in the byte stream.
Swift_OutputByteStream | $os | output stream to read from |
Implemented in Swift_CharacterStream_NgCharacterStream, and Swift_CharacterStream_ArrayCharacterStream.
importString | ( | $string | ) |
Import a string a bytes into this CharacterStream, overwriting any existing data in the stream.
string | $string |
Implemented in Swift_CharacterStream_NgCharacterStream, and Swift_CharacterStream_ArrayCharacterStream.
read | ( | $length | ) |
Read $length characters from the stream and move the internal pointer $length further into the stream.
int | $length |
Implemented in Swift_CharacterStream_NgCharacterStream, and Swift_CharacterStream_ArrayCharacterStream.
readBytes | ( | $length | ) |
Read $length characters from the stream and return a 1-dimensional array containing there octet values.
int | $length |
Implemented in Swift_CharacterStream_NgCharacterStream, and Swift_CharacterStream_ArrayCharacterStream.
setCharacterReaderFactory | ( | Swift_CharacterReaderFactory | $factory | ) |
Set the CharacterReaderFactory for multi charset support.
Swift_CharacterReaderFactory | $factory |
Implemented in Swift_CharacterStream_NgCharacterStream, and Swift_CharacterStream_ArrayCharacterStream.
setCharacterSet | ( | $charset | ) |
Set the character set used in this CharacterStream.
string | $charset |
Implemented in Swift_CharacterStream_NgCharacterStream, and Swift_CharacterStream_ArrayCharacterStream.
setPointer | ( | $charOffset | ) |
Move the internal pointer to $charOffset in the stream.
int | $charOffset |
Implemented in Swift_CharacterStream_ArrayCharacterStream, and Swift_CharacterStream_NgCharacterStream.
write | ( | $chars | ) |
Write $chars to the end of the stream.
string | $chars |
Implemented in Swift_CharacterStream_NgCharacterStream, and Swift_CharacterStream_ArrayCharacterStream.