Swift
[ class tree: Swift ] [ index: Swift ] [ all elements ]

Class: Swift_CharacterStream_ArrayCharacterStream

Source Location: /vendors/swift/classes/Swift/CharacterStream/ArrayCharacterStream.php

Class Overview


A CharacterStream implementation which stores characters in an internal array.


Author(s):

  • Chris Corbyn

Implements interfaces:

Methods



Class Details

[line 21]
A CharacterStream implementation which stores characters in an internal array.



Tags:

author:  Chris Corbyn
filesource:  Source Code for this file


[ Top ]


Class Methods


constructor __construct [line 54]

Swift_CharacterStream_ArrayCharacterStream __construct( Swift_CharacterReaderFactory $factory, string $charset)

Create a new CharacterStream with the given $chars, if set.



Tags:

access:  public


Parameters:

Swift_CharacterReaderFactory   $factory   for loading validators
string   $charset   used in the stream

[ Top ]

method flushContents [line 286]

void flushContents( )

Empty the stream and reset the internal pointer.



Tags:

access:  public



Implementation of:
Swift_CharacterStream::flushContents()
Empty the stream and reset the internal pointer.
[ Top ]

method importByteStream [line 86]

void importByteStream( Swift_OutputByteStream $os)

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



Tags:

access:  public



Implementation of:
Swift_CharacterStream::importByteStream()
Overwrite this character stream using the byte sequence in the byte stream.

Parameters:

Swift_OutputByteStream   $os   output stream to read from

[ Top ]

method importString [line 123]

void importString( string $string)

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



Tags:

access:  public



Implementation of:
Swift_CharacterStream::importString()
Import a string a bytes into this CharacterStream, overwriting any existing data in the stream.

Parameters:

string   $string  

[ Top ]

method read [line 135]

string read( int $length)

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



Tags:

access:  public



Implementation of:
Swift_CharacterStream::read()
Read $length characters from the stream and move the internal pointer $length further into the stream.

Parameters:

int   $length  

[ Top ]

method readBytes [line 168]

int[] readBytes( int $length)

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



Tags:

access:  public



Implementation of:
Swift_CharacterStream::readBytes()
Read $length characters from the stream and return a 1-dimensional array containing there octet values.

Parameters:

int   $length  

[ Top ]

method setCharacterReaderFactory [line 76]

void setCharacterReaderFactory( Swift_CharacterReaderFactory $factory)

Set the CharacterReaderFactory for multi charset support.



Tags:

access:  public



Implementation of:
Swift_CharacterStream::setCharacterReaderFactory()
Set the CharacterReaderFactory for multi charset support.

Parameters:

Swift_CharacterReaderFactory   $factory  

[ Top ]

method setCharacterSet [line 66]

void setCharacterSet( string $charset)

Set the character set used in this CharacterStream.



Tags:

access:  public



Implementation of:
Swift_CharacterStream::setCharacterSet()
Set the character set used in this CharacterStream.

Parameters:

string   $charset  

[ Top ]

method setPointer [line 270]

void setPointer( int $charOffset)

Move the internal pointer to $charOffset in the stream.



Tags:

access:  public



Implementation of:
Swift_CharacterStream::setPointer()
Move the internal pointer to $charOffset in the stream.

Parameters:

int   $charOffset  

[ Top ]

method write [line 192]

void write( string $chars)

Write $chars to the end of the stream.



Tags:

access:  public



Implementation of:
Swift_CharacterStream::write()
Write $chars to the end of the stream.

Parameters:

string   $chars  

[ Top ]


Documentation generated on Mon, 05 Sep 2011 20:31:59 -0500 by phpDocumentor 1.4.3