Class Swift_CharacterStream_NgCharacterStream

InheritanceSwift_CharacterStream_NgCharacterStream
ImplementsSwift_CharacterStream

A CharacterStream implementation which stores characters in an internal array.

Method Details

__construct() public method

Constructor.

public void __construct ( Swift_CharacterReaderFactory $factory, $charset )
$factory Swift_CharacterReaderFactory
$charset string
flushContents() public method
public void flushContents ( )
importByteStream() public method
public void importByteStream ( Swift_OutputByteStream $os )
$os Swift_OutputByteStream
importString() public method
public void importString ( $string )
$string string
read() public method
public string read ( $length )
$length int
readBytes() public method
public integer[] readBytes ( $length )
$length int
setCharacterReaderFactory() public method

Set the CharacterReaderFactory for multi charset support.

public void setCharacterReaderFactory ( Swift_CharacterReaderFactory $factory )
$factory Swift_CharacterReaderFactory
setCharacterSet() public method

Set the character set used in this CharacterStream.

public void setCharacterSet ( $charset )
$charset string
setPointer() public method
public void setPointer ( $charOffset )
$charOffset int
write() public method
public void write ( $chars )
$chars string