Class Swift_CharacterStream_NgCharacterStream
Inheritance | Swift_CharacterStream_NgCharacterStream |
---|---|
Implements | Swift_CharacterStream |
A CharacterStream implementation which stores characters in an internal array.
Public Methods
Method | Description | Defined By |
---|---|---|
__construct() | Constructor. | Swift_CharacterStream_NgCharacterStream |
flushContents() | Swift_CharacterStream_NgCharacterStream | |
importByteStream() | Swift_CharacterStream_NgCharacterStream | |
importString() | Swift_CharacterStream_NgCharacterStream | |
read() | Swift_CharacterStream_NgCharacterStream | |
readBytes() | Swift_CharacterStream_NgCharacterStream | |
setCharacterReaderFactory() | Set the CharacterReaderFactory for multi charset support. | Swift_CharacterStream_NgCharacterStream |
setCharacterSet() | Set the character set used in this CharacterStream. | Swift_CharacterStream_NgCharacterStream |
setPointer() | Swift_CharacterStream_NgCharacterStream | |
write() | Swift_CharacterStream_NgCharacterStream |
Method Details
Constructor.
public void __construct ( Swift_CharacterReaderFactory $factory, $charset ) | ||
$factory | Swift_CharacterReaderFactory | |
$charset | string |
See also Swift_CharacterStream::flushContents().
public void flushContents ( ) |
public void importByteStream ( Swift_OutputByteStream $os ) | ||
$os | Swift_OutputByteStream |
See also Swift_CharacterStream::importString().
public void importString ( $string ) | ||
$string | string |
See also Swift_CharacterStream::read().
public string read ( $length ) | ||
$length | int |
See also Swift_CharacterStream::readBytes().
public integer[] readBytes ( $length ) | ||
$length | int |
Set the CharacterReaderFactory for multi charset support.
public void setCharacterReaderFactory ( Swift_CharacterReaderFactory $factory ) | ||
$factory | Swift_CharacterReaderFactory |
Set the character set used in this CharacterStream.
public void setCharacterSet ( $charset ) | ||
$charset | string |
See also Swift_CharacterStream::setPointer().
public void setPointer ( $charOffset ) | ||
$charOffset | int |
See also Swift_CharacterStream::write().
public void write ( $chars ) | ||
$chars | string |