XOOPS RMCommon Utilities
2.1.8.91RC
|
Public Member Functions | |
flushContents () | |
importByteStream (Swift_OutputByteStream $os) | |
importString ($string) | |
read ($length) | |
readBytes ($length) | |
setCharacterReaderFactory (Swift_CharacterReaderFactory $factory) | |
setCharacterSet ($charset) | |
setPointer ($charOffset) | |
write ($chars) | |
Definition at line 24 of file CharacterStream.php.
Swift_CharacterStream::flushContents | ( | ) |
Empty the stream and reset the internal pointer.
Implemented in Swift_CharacterStream_ArrayCharacterStream.
Swift_CharacterStream::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_ArrayCharacterStream.
Swift_CharacterStream::importString | ( | $string | ) |
Import a string a bytes into this CharacterStream, overwriting any existing data in the stream.
string | $string |
Implemented in Swift_CharacterStream_ArrayCharacterStream.
Swift_CharacterStream::read | ( | $length | ) |
Read $length characters from the stream and move the internal pointer $length further into the stream.
int | $length |
Implemented in Swift_CharacterStream_ArrayCharacterStream.
Swift_CharacterStream::readBytes | ( | $length | ) |
Read $length characters from the stream and return a 1-dimensional array containing there octet values.
int | $length |
Implemented in Swift_CharacterStream_ArrayCharacterStream.
Swift_CharacterStream::setCharacterReaderFactory | ( | Swift_CharacterReaderFactory | $factory | ) |
Set the CharacterReaderFactory for multi charset support.
Swift_CharacterReaderFactory | $factory |
Implemented in Swift_CharacterStream_ArrayCharacterStream.
Swift_CharacterStream::setCharacterSet | ( | $charset | ) |
Set the character set used in this CharacterStream.
string | $charset |
Implemented in Swift_CharacterStream_ArrayCharacterStream.
Swift_CharacterStream::setPointer | ( | $charOffset | ) |
Move the internal pointer to $charOffset in the stream.
int | $charOffset |
Implemented in Swift_CharacterStream_ArrayCharacterStream.
Swift_CharacterStream::write | ( | $chars | ) |
Write $chars to the end of the stream.
string | $chars |
Implemented in Swift_CharacterStream_ArrayCharacterStream.