Represents a stream of items that can be read from.
Any class that implements this interface can be used by a Pump to pump data from it to a WriteStream.
no type hierarchy
Inherited Attributes |
Attributes inherited from: Object hash , string |
Methods | |
endHandler | shared ReadStream<T> endHandler(Anything()? endHandler) Set an end handler. Once the stream has ended, and there is no more data to be read, this handler will be called. |
exceptionHandler | shared ReadStream<T> exceptionHandler(Anything(Throwable)? handler) Set an exception handler on the read stream. Parameters:
|
handler | shared ReadStream<T> handler(Anything(T)? handler) Set a data handler. As data is read, the handler will be called with the data. |
pause | shared ReadStream<T> pause() Pause the |
resume | shared ReadStream<T> resume() Resume reading. If the |
Inherited Methods |
Methods inherited from: Object equals |
Methods inherited from: StreamBase |