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

This class is not intended to be instantiated directly, please see StreamPipe. More...

Inheritance diagram for Qore::PipeInputStream:

Public Member Functions

nothing finishClose ()
 Call when the background operation is finished to wakeup PipeOutputStream::close().
 
*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.
 
nothing reportError (hash ex)
 Causes all operations on both pipe streams to wake up and throw an exception. More...
 
- Public Member Functions inherited from Qore::InputStream
 constructor ()
 Constructor. More...
 

Detailed Description

This class is not intended to be instantiated directly, please see StreamPipe.

Since
Qore 0.8.13
See also
StreamPipe

Member Function Documentation

nothing Qore::PipeInputStream::reportError ( hash  ex)

Causes all operations on both pipe streams to wake up and throw an exception.

Normally used from the background thread to report an error to the main thread.

Parameters
exthe exception, must contain strings 'err' and 'desc'