Qore Programming Language Reference Manual
0.8.13.2
|
This class defines an abstract interface for input streams. More...
Public Member Functions | |
constructor () | |
Constructor. More... | |
abstract int | peek () |
Peeks the next byte available from the input stream; returns -1 if no more data available. More... | |
abstract *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... | |
This class defines an abstract interface for input streams.
Classes inheriting this class can be used to read bytes from various sources.
STREAM-THREAD-ERROR
to be thrown.Qore::InputStream::constructor | ( | ) |
Constructor.
Used by subclasses defined in the Qore programming language.
|
pure virtual |
Peeks the next byte available from the input stream; returns -1 if no more data available.
Implemented in Qore::StringInputStream, Qore::BinaryInputStream, Qore::FileInputStream, Qore::EncodingConversionInputStream, Qore::TransformInputStream, and Qore::PipeInputStream.
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 |
Implemented in Qore::StringInputStream, Qore::BinaryInputStream, Qore::FileInputStream, Qore::EncodingConversionInputStream, Qore::TransformInputStream, and Qore::PipeInputStream.