Provides the base functionality for an InputStream supporting filters.
package | Swift |
---|---|
subpackage | ByteStream |
author | Chris Corbyn |
addFilter(\Swift_StreamFilter $filter, string $key)
bind(\Swift_InputByteStream $is)
The stream acts as an observer, receiving all data that is written. All write() and flushBuffers() operations will be mirrored.
commit()
\Swift_IoException |
---|
flushBuffers()
\Swift_IoException |
---|
removeFilter(string $key)
string
unbind(\Swift_InputByteStream $is)
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.
write(string $bytes) : int
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
\Swift_IoException |
---|
int
_commit(string $bytes)
access | protected |
---|
string
_flush()
access | protected |
---|
_doWrite($bytes)
_filter($bytes)
$_sequence
$_filters
$_mirrors
$_writeBuffer