|
Qore Programming Language Reference Manual
0.8.13.5
|
This class implements the InputStream interface for reading bytes from another InputStream while applying a transformation. More...

Public Member Functions | |
| constructor (Qore::InputStream is, Qore::Transform t) | |
| Creates the TransformInputStream. More... | |
| int | peek () |
| Peeks the next byte available from the input stream; returns -1 if no more data available. More... | |
| *binary | read (int limit) |
| Reads bytes (up to a specified limit) from the input stream; returns NOTHING if there are no more bytes in the stream. More... | |
Public Member Functions inherited from Qore::InputStream | |
| constructor () | |
| Constructor. More... | |
This class implements the InputStream interface for reading bytes from another InputStream while applying a transformation.
STREAM-THREAD-ERROR to be thrown.| Qore::TransformInputStream::constructor | ( | Qore::InputStream | is, |
| Qore::Transform | t | ||
| ) |
Creates the TransformInputStream.
| is | the underlying InputStream where the data to transform will be read from |
| t | the transformation to apply |
|
virtual |
Peeks the next byte available from the input stream; returns -1 if no more data available.
| 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::InputStream.
Reads bytes (up to a specified limit) from the input stream; returns NOTHING if there are no more bytes in the stream.
| limit | the maximum number of bytes to read |
| INPUT-STREAM-ERROR | limit is not positive |
| 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::InputStream.