Class: ReadSupport

vertx/streams~ ReadSupport

new ReadSupport(delegate)

Provides methods to read from a data stream. This is used internally and exposed through module:vertx/streams~ReadStream and other mixins and is not typically used directly.
Parameters:
Name Type Description
delegate external:ReadStream The Java delegate
Source:

Methods

dataHandler(handler)

Set a data handler. As data is read, the handler will be called with a Buffer containing the data read.
Parameters:
Name Type Description
handler BodyHandler the handler to call
Source:

exceptionHandler(handler)

Set an exception handler.
Parameters:
Name Type Description
handler Handler the handler to call
Source:

pause()

Pause the ReadStream. While the stream is paused, no data will be sent to the data Handler
Source:

resume()

Resume reading. If the ReadStream has been paused, reading will recommence on it.
Source: