Represents a stream of items that can be read from.
Any class that implements this interface can be used by a @see \io\vertx\jphp\core\streams\Pump to pump data from it to a @see \io\vertx\jphp\core\streams\WriteStream.
handler.handler.0| package |
Default |
|---|
__construct()
endHandler( $arg0) : $this
callable
$thisa reference to this, so the API can be used fluently
exceptionHandler( $arg0) : $this
callable
$thisa reference to this, so the API can be used fluently
fetch( $arg0) : $this
integer
$thisa reference to this, so the API can be used fluently
handler( $arg0) : $this
callable
$thisa reference to this, so the API can be used fluently
pause() : $this
While it's paused, no data will be sent to the data handler.
$thisa reference to this, so the API can be used fluently
pipe() : \io\vertx\jphp\core\streams\Pipe<T>
The stream will be resumed when the pipe will be wired to a WriteStream.
\io\vertx\jphp\core\streams\Pipea pipe
pipeTo( $arg0, $arg1 = null) : void
param $dst [WriteStream
Pipe this ReadStream to the WriteStream.
Elements emitted by this stream will be written to the write stream until this stream ends or fails.
Once this stream has ended or failed, the write stream will be ended and the handler will be
called with the result.
param $dst [WriteStream
WriteStream
callable
resume() : $this
If the ReadStream has been paused, reading will recommence on it.
$thisa reference to this, so the API can be used fluently