PHP Class Swift_CharacterStream_NgCharacterStream, Halite

Author: Xavier De Cock ([email protected])
Inheritance: implements Swift_CharacterStream
Datei anzeigen Open project: HaliteChallenge/Halite

Public Methods

Method Description
__construct ( Swift_CharacterReaderFactory $factory, string $charset ) Constructor.
flushContents ( )
importByteStream ( Swift_OutputByteStream $os )
importString ( string $string )
read ( integer $length ) : string
readBytes ( integer $length ) : integer[]
setCharacterReaderFactory ( Swift_CharacterReaderFactory $factory ) Set the CharacterReaderFactory for multi charset support.
setCharacterSet ( string $charset ) Set the character set used in this CharacterStream.
setPointer ( integer $charOffset )
write ( string $chars )

Method Details

__construct() public method

Constructor.
public __construct ( Swift_CharacterReaderFactory $factory, string $charset )
$factory Swift_CharacterReaderFactory
$charset string

flushContents() public method

See also: Swift_CharacterStream::flushContents()
public flushContents ( )

importByteStream() public method

See also: Swift_CharacterStream::importByteStream()
public importByteStream ( Swift_OutputByteStream $os )
$os Swift_OutputByteStream

importString() public method

See also: Swift_CharacterStream::importString()
public importString ( string $string )
$string string

read() public method

See also: Swift_CharacterStream::read()
public read ( integer $length ) : string
$length integer
return string

readBytes() public method

See also: Swift_CharacterStream::readBytes()
public readBytes ( integer $length ) : integer[]
$length integer
return integer[]

setCharacterReaderFactory() public method

Set the CharacterReaderFactory for multi charset support.
public setCharacterReaderFactory ( Swift_CharacterReaderFactory $factory )
$factory Swift_CharacterReaderFactory

setCharacterSet() public method

Set the character set used in this CharacterStream.
public setCharacterSet ( string $charset )
$charset string

setPointer() public method

See also: Swift_CharacterStream::setPointer()
public setPointer ( integer $charOffset )
$charOffset integer

write() public method

See also: Swift_CharacterStream::write()
public write ( string $chars )
$chars string