XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
Swift_CharacterStream Interface Reference
Inheritance diagram for Swift_CharacterStream:
Inheritance graph

Public Member Functions

 flushContents ()
 
 importByteStream (Swift_OutputByteStream $os)
 
 importString ($string)
 
 read ($length)
 
 readBytes ($length)
 
 setCharacterReaderFactory (Swift_CharacterReaderFactory $factory)
 
 setCharacterSet ($charset)
 
 setPointer ($charOffset)
 
 write ($chars)
 

Detailed Description

Definition at line 24 of file CharacterStream.php.

Member Function Documentation

Swift_CharacterStream::flushContents ( )

Empty the stream and reset the internal pointer.

Implemented in Swift_CharacterStream_ArrayCharacterStream.

Swift_CharacterStream::importByteStream ( Swift_OutputByteStream  $os)

Overwrite this character stream using the byte sequence in the byte stream.

Parameters
Swift_OutputByteStream$osoutput stream to read from

Implemented in Swift_CharacterStream_ArrayCharacterStream.

Swift_CharacterStream::importString (   $string)

Import a string a bytes into this CharacterStream, overwriting any existing data in the stream.

Parameters
string$string

Implemented in Swift_CharacterStream_ArrayCharacterStream.

Swift_CharacterStream::read (   $length)

Read $length characters from the stream and move the internal pointer $length further into the stream.

Parameters
int$length
Returns
string

Implemented in Swift_CharacterStream_ArrayCharacterStream.

Swift_CharacterStream::readBytes (   $length)

Read $length characters from the stream and return a 1-dimensional array containing there octet values.

Parameters
int$length
Returns
int[]

Implemented in Swift_CharacterStream_ArrayCharacterStream.

Swift_CharacterStream::setCharacterReaderFactory ( Swift_CharacterReaderFactory  $factory)

Set the CharacterReaderFactory for multi charset support.

Parameters
Swift_CharacterReaderFactory$factory

Implemented in Swift_CharacterStream_ArrayCharacterStream.

Swift_CharacterStream::setCharacterSet (   $charset)

Set the character set used in this CharacterStream.

Parameters
string$charset

Implemented in Swift_CharacterStream_ArrayCharacterStream.

Swift_CharacterStream::setPointer (   $charOffset)

Move the internal pointer to $charOffset in the stream.

Parameters
int$charOffset

Implemented in Swift_CharacterStream_ArrayCharacterStream.

Swift_CharacterStream::write (   $chars)

Write $chars to the end of the stream.

Parameters
string$chars

Implemented in Swift_CharacterStream_ArrayCharacterStream.


The documentation for this interface was generated from the following file: