XOOPS RMCommon Utilities
2.1.8.91RC
|
Public Member Functions | |
bind (Swift_InputByteStream $is) | |
commit () | |
flushBuffers () | |
unbind (Swift_InputByteStream $is) | |
write ($bytes) | |
Definition at line 19 of file InputByteStream.php.
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.
Swift_InputByteStream | $is |
Implemented in Swift_ByteStream_ArrayByteStream, Swift_Plugins_BandwidthMonitorPlugin, Swift_ByteStream_AbstractFilterableInputStream, and Swift_KeyCache_SimpleKeyCacheInputStream.
Referenced by Swift_Mime_SimpleMimeEntity\toByteStream().
Swift_InputByteStream::commit | ( | ) |
For any bytes that are currently buffered inside the stream, force them off the buffer.
Swift_IoException |
Implemented in Swift_ByteStream_ArrayByteStream, Swift_Plugins_BandwidthMonitorPlugin, Swift_ByteStream_AbstractFilterableInputStream, and Swift_KeyCache_SimpleKeyCacheInputStream.
Referenced by Swift_Mime_SimpleMimeEntity\toByteStream().
Swift_InputByteStream::flushBuffers | ( | ) |
Flush the contents of the stream (empty it) and set the internal pointer to the beginning.
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.
Swift_InputByteStream | $is |
Implemented in Swift_ByteStream_ArrayByteStream, Swift_Plugins_BandwidthMonitorPlugin, Swift_ByteStream_AbstractFilterableInputStream, and Swift_KeyCache_SimpleKeyCacheInputStream.
Referenced by Swift_Mime_SimpleMimeEntity\toByteStream().
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).
string | $bytes |
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().