PHP Класс Swift_CharacterStream_ArrayCharacterStream, Halite

Автор: Chris Corbyn
Наследование: implements Swift_CharacterStream
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( Swift_CharacterReaderFactory $factory, string $charset ) Create a new CharacterStream with the given $chars, if set.
flushContents ( ) Empty the stream and reset the internal pointer.
importByteStream ( Swift_OutputByteStream $os ) Overwrite this character stream using the byte sequence in the byte stream.
importString ( string $string ) Import a string a bytes into this CharacterStream, overwriting any existing data in the stream.
read ( integer $length ) : string Read $length characters from the stream and move the internal pointer $length further into the stream.
readBytes ( integer $length ) : integer[] Read $length characters from the stream and return a 1-dimensional array containing there octet values.
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 ) Move the internal pointer to $charOffset in the stream.
write ( string $chars ) Write $chars to the end of the stream.

Приватные методы

Метод Описание
_initializeMaps ( )
_reloadBuffer ( $fp, $len )

Описание методов

__construct() публичный Метод

Create a new CharacterStream with the given $chars, if set.
public __construct ( Swift_CharacterReaderFactory $factory, string $charset )
$factory Swift_CharacterReaderFactory for loading validators
$charset string used in the stream

flushContents() публичный Метод

Empty the stream and reset the internal pointer.
public flushContents ( )

importByteStream() публичный Метод

Overwrite this character stream using the byte sequence in the byte stream.
public importByteStream ( Swift_OutputByteStream $os )
$os Swift_OutputByteStream output stream to read from

importString() публичный Метод

Import a string a bytes into this CharacterStream, overwriting any existing data in the stream.
public importString ( string $string )
$string string

read() публичный Метод

Read $length characters from the stream and move the internal pointer $length further into the stream.
public read ( integer $length ) : string
$length integer
Результат string

readBytes() публичный Метод

Read $length characters from the stream and return a 1-dimensional array containing there octet values.
public readBytes ( integer $length ) : integer[]
$length integer
Результат integer[]

setCharacterReaderFactory() публичный Метод

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

setCharacterSet() публичный Метод

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

setPointer() публичный Метод

Move the internal pointer to $charOffset in the stream.
public setPointer ( integer $charOffset )
$charOffset integer

write() публичный Метод

Write $chars to the end of the stream.
public write ( string $chars )
$chars string