public interface ReadStream
Any class that implements this interface can be used by a Pump
to pump data from it
to a WriteStream
.
Modifier and Type | Method and Description |
---|---|
void |
dataHandler(Handler<Buffer> handler)
Set a data handler.
|
void |
endHandler(Handler<java.lang.Void> endHandler)
Set an end handler.
|
void |
exceptionHandler(Handler<java.lang.Exception> handler)
Set an exception handler.
|
void |
pause()
Pause the
ReadStream . |
void |
resume()
Resume reading.
|
void dataHandler(Handler<Buffer> handler)
void pause()
ReadStream
. While the stream is paused, no data will be sent to the dataHandler
void resume()
ReadStream
has been paused, reading will recommence on it.void exceptionHandler(Handler<java.lang.Exception> handler)
void endHandler(Handler<java.lang.Void> endHandler)