Qore Programming Language Reference Manual  0.8.12.3
Qore::TransformInputStream Class Reference

This class implements the InputStream interface for reading bytes from another InputStream while applying a transformation. More...

Inheritance diagram for Qore::TransformInputStream:

Public Member Functions

 constructor (Qore::InputStream is, Qore::Transform t)
 Creates the TransformInputStream. 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...
 

Detailed Description

This class implements the InputStream interface for reading bytes from another InputStream while applying a transformation.

Since
Qore 0.8.13

Member Function Documentation

Qore::TransformInputStream::constructor ( Qore::InputStream  is,
Qore::Transform  t 
)

Creates the TransformInputStream.

Parameters
isthe underlying InputStream where the data to transform will be read from
tthe transformation to apply
*binary Qore::TransformInputStream::read ( int  limit)
virtual

Reads bytes (up to a specified limit) from the input stream; returns NOTHING if there are no more bytes in the stream.

Parameters
limitthe maximum number of bytes to read
Returns
the read bytes (the length is between 1 and `limit` inclusive) or NOTHING if no more bytes are available

Implements Qore::InputStream.