\Swift_CharacterStream
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.
- Author: Chris Corbyn
Synopsis
interface Swift_CharacterStream
{
- // methods
- public void setCharacterSet()
- public void setCharacterReaderFactory()
- public void importByteStream()
- public void importString()
- public string read()
- public array readBytes()
- public void write()
- public void setPointer()
- public void flushContents()
Methods
public
- flushContents() — Empty the stream and reset the internal pointer.
- importByteStream() — Overwrite this character stream using the byte sequence in the byte stream.
- importString() — Import a string a bytes into this CharacterStream, overwriting any existing data in the stream.
- read() — Read $length characters from the stream and move the internal pointer $length further into the stream.
- readBytes() — Read $length characters from the stream and return a 1-dimensional array containing there octet values.
- setCharacterReaderFactory() — Set the CharacterReaderFactory for multi charset support.
- setCharacterSet() — Set the character set used in this CharacterStream.
- setPointer() — Move the internal pointer to $charOffset in the stream.
- write() — Write $chars to the end of the stream.