TYPO3  7.6
Public Member Functions | Private Attributes | List of all members
Swift_CharacterStream_NgCharacterStream Class Reference
Inheritance diagram for Swift_CharacterStream_NgCharacterStream:
Swift_CharacterStream

Public Member Functions

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

Private Attributes

 $_charReader
 
 $_charReaderFactory
 
 $_charset
 
 $_datas = ''
 
 $_datasSize = 0
 
 $_map
 
 $_mapType = 0
 
 $_charCount = 0
 
 $_currentPos = 0
 

Detailed Description

A CharacterStream implementation which stores characters in an internal array.

Author
Xavier De Cock xdeco.nosp@m.ck@g.nosp@m.mail..nosp@m.com

Definition at line 16 of file NgCharacterStream.php.

Constructor & Destructor Documentation

__construct ( Swift_CharacterReaderFactory  $factory,
  $charset 
)

Constructor.

Parameters
Swift_CharacterReaderFactory$factory
string$charset

Definition at line 87 of file NgCharacterStream.php.

References setCharacterReaderFactory(), and setCharacterSet().

Member Function Documentation

flushContents ( )
importByteStream ( Swift_OutputByteStream  $os)
importString (   $string)
See Also
Swift_CharacterStream::importString()
Parameters
string$string

Implements Swift_CharacterStream.

Definition at line 149 of file NgCharacterStream.php.

References flushContents(), and write().

read (   $length)
readBytes (   $length)
See Also
Swift_CharacterStream::readBytes()
Parameters
int$length
Returns
integer[]

Implements Swift_CharacterStream.

Definition at line 228 of file NgCharacterStream.php.

References read().

setCharacterReaderFactory ( Swift_CharacterReaderFactory  $factory)

Set the CharacterReaderFactory for multi charset support.

Parameters
Swift_CharacterReaderFactory$factory

Implements Swift_CharacterStream.

Definition at line 112 of file NgCharacterStream.php.

Referenced by __construct().

setCharacterSet (   $charset)

Set the character set used in this CharacterStream.

Parameters
string$charset

Implements Swift_CharacterStream.

Definition at line 100 of file NgCharacterStream.php.

Referenced by __construct().

setPointer (   $charOffset)
See Also
Swift_CharacterStream::setPointer()
Parameters
int$charOffset

Implements Swift_CharacterStream.

Definition at line 245 of file NgCharacterStream.php.

References $_charCount.

write (   $chars)
See Also
Swift_CharacterStream::write()
Parameters
string$chars

Implements Swift_CharacterStream.

Definition at line 258 of file NgCharacterStream.php.

Referenced by importByteStream(), and importString().

Member Data Documentation

$_charCount = 0
private

Definition at line 72 of file NgCharacterStream.php.

Referenced by read(), and setPointer().

$_charReader
private

Definition at line 23 of file NgCharacterStream.php.

$_charReaderFactory
private

Definition at line 30 of file NgCharacterStream.php.

$_charset
private

Definition at line 37 of file NgCharacterStream.php.

$_currentPos = 0
private

Definition at line 79 of file NgCharacterStream.php.

Referenced by read().

$_datas = ''
private

Definition at line 44 of file NgCharacterStream.php.

$_datasSize = 0
private

Definition at line 51 of file NgCharacterStream.php.

$_map
private

Definition at line 58 of file NgCharacterStream.php.

Referenced by read().

$_mapType = 0
private

Definition at line 65 of file NgCharacterStream.php.