Qore Programming Language Reference Manual
0.8.13.2
|
This class implements the OutputStream interface for writing bytes to another OutputStream while applying a transformation. More...
Public Member Functions | |
nothing | close () |
Flushes any buffered (unwritten) bytes, closes the output stream and releases all resources. More... | |
constructor (Qore::OutputStream os, Qore::Transform t) | |
Creates the TransformOutputStream. More... | |
nothing | write (binary data) |
Writes bytes to the output stream. More... | |
![]() | |
constructor () | |
Constructor. More... | |
This class implements the OutputStream interface for writing bytes to another OutputStream while applying a transformation.
STREAM-THREAD-ERROR
to be thrown.
|
virtual |
Flushes any buffered (unwritten) bytes, closes the output stream and releases all resources.
Any methods called on a closed output stream will throw an exception.
OUTPUT-STREAM-CLOSED-ERROR | the output stream has already been closed |
STREAM-THREAD-ERROR | this exception is thrown if this method is called from any thread other than the thread that created the object |
Implements Qore::OutputStream.
Qore::TransformOutputStream::constructor | ( | Qore::OutputStream | os, |
Qore::Transform | t | ||
) |
Creates the TransformOutputStream.
os | the underlying OutputStream where the transformed data will be written to |
t | the transformation to apply |
|
virtual |
Writes bytes to the output stream.
data | the data to write |
OUTPUT-STREAM-CLOSED-ERROR | the output stream has already been closed |
STREAM-THREAD-ERROR | this exception is thrown if this method is called from any thread other than the thread that created the object |
Implements Qore::OutputStream.