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

Public Member Functions

 bind (Swift_InputByteStream $is)
 
 commit ()
 
 flushBuffers ()
 
 unbind (Swift_InputByteStream $is)
 
 write ($bytes)
 

Detailed Description

Definition at line 19 of file InputByteStream.php.

Member Function Documentation

Swift_InputByteStream::bind ( Swift_InputByteStream  $is)

Attach $is to this stream. The stream acts as an observer, receiving all data that is written. All write() and flushBuffers() operations will be mirrored.

Parameters
Swift_InputByteStream$is

Implemented in Swift_ByteStream_ArrayByteStream, Swift_Plugins_BandwidthMonitorPlugin, Swift_ByteStream_AbstractFilterableInputStream, and Swift_KeyCache_SimpleKeyCacheInputStream.

Referenced by Swift_Mime_SimpleMimeEntity\toByteStream().

Here is the caller graph for this function:

Swift_InputByteStream::commit ( )

For any bytes that are currently buffered inside the stream, force them off the buffer.

Exceptions
Swift_IoException

Implemented in Swift_ByteStream_ArrayByteStream, Swift_Plugins_BandwidthMonitorPlugin, Swift_ByteStream_AbstractFilterableInputStream, and Swift_KeyCache_SimpleKeyCacheInputStream.

Referenced by Swift_Mime_SimpleMimeEntity\toByteStream().

Here is the caller graph for this function:

Swift_InputByteStream::flushBuffers ( )

Flush the contents of the stream (empty it) and set the internal pointer to the beginning.

Exceptions
Swift_IoException

Implemented in Swift_ByteStream_ArrayByteStream, Swift_ByteStream_AbstractFilterableInputStream, Swift_Plugins_BandwidthMonitorPlugin, and Swift_KeyCache_SimpleKeyCacheInputStream.

Swift_InputByteStream::unbind ( Swift_InputByteStream  $is)

Remove an already bound stream. If $is is not bound, no errors will be raised. If the stream currently has any buffered data it will be written to $is before unbinding occurs.

Parameters
Swift_InputByteStream$is

Implemented in Swift_ByteStream_ArrayByteStream, Swift_Plugins_BandwidthMonitorPlugin, Swift_ByteStream_AbstractFilterableInputStream, and Swift_KeyCache_SimpleKeyCacheInputStream.

Referenced by Swift_Mime_SimpleMimeEntity\toByteStream().

Here is the caller graph for this function:

Swift_InputByteStream::write (   $bytes)

Writes $bytes to the end of the stream.

Writing may not happen immediately if the stream chooses to buffer. If you want to write these bytes with immediate effect, call commit() after calling write().

This method returns the sequence ID of the write (i.e. 1 for first, 2 for second, etc etc).

Parameters
string$bytes
Returns
int
Exceptions
Swift_IoException

Implemented in Swift_ByteStream_ArrayByteStream, Swift_Plugins_BandwidthMonitorPlugin, and Swift_ByteStream_AbstractFilterableInputStream.

Referenced by Swift_Mime_ContentEncoder_Base64ContentEncoder\encodeByteStream(), Swift_Mime_ContentEncoder_QpContentEncoder\encodeByteStream(), Swift_Mime_ContentEncoder_PlainContentEncoder\encodeByteStream(), Swift_KeyCache_ArrayKeyCache\exportToByteStream(), Swift_KeyCache_DiskKeyCache\exportToByteStream(), and Swift_Mime_SimpleMimeEntity\toByteStream().

Here is the caller graph for this function:


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