Interface Swift_CharacterStream
An abstract means of reading and writing data in terms of characters as opposed to bytes. Classes implementing this interface may use a subsystem which requires less memory than working with large strings of data.
Direct known implementers
Swift_CharacterStream_ArrayCharacterStream
,
Swift_CharacterStream_NgCharacterStream
Package: Swift\CharacterStream
Author: Chris Corbyn
Located at vendors/swiftmailer/lib/classes/Swift/CharacterStream.php
Author: Chris Corbyn
Located at vendors/swiftmailer/lib/classes/Swift/CharacterStream.php
Methods summary
public
|
|
public
|
#
setCharacterReaderFactory(
Set the CharacterReaderFactory for multi charset support. |
public
|
#
importByteStream(
Overwrite this character stream using the byte sequence in the byte stream. |
public
|
#
importString( string $string )
Import a string a bytes into this CharacterStream, overwriting any existing data in the stream. |
public
string
|
#
read( integer $length )
Read $length characters from the stream and move the internal pointer $length further into the stream. |
public
int[]
|
#
readBytes( integer $length )
Read $length characters from the stream and return a 1-dimensional array containing there octet values. |
public
|
|
public
|
|
public
|