public class InputStreamToReadStream extends Object implements io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_READ_BUFFER_SIZE |
| Constructor and Description |
|---|
InputStreamToReadStream(io.vertx.core.Context context,
InputStream inputStream,
boolean autoCloseInputStream) |
| Modifier and Type | Method and Description |
|---|---|
io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> |
endHandler(io.vertx.core.Handler<Void> handler) |
InputStreamToReadStream |
exceptionHandler(io.vertx.core.Handler<Throwable> handler) |
io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> |
fetch(long amount) |
void |
handleException(Throwable e) |
InputStreamToReadStream |
handler(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> handler) |
InputStreamToReadStream |
pause() |
InputStreamToReadStream |
readBufferSize(int readBufferSize) |
InputStreamToReadStream |
resume() |
public static final int DEFAULT_READ_BUFFER_SIZE
public InputStreamToReadStream(io.vertx.core.Context context,
InputStream inputStream,
boolean autoCloseInputStream)
public InputStreamToReadStream readBufferSize(int readBufferSize)
public InputStreamToReadStream exceptionHandler(io.vertx.core.Handler<Throwable> handler)
exceptionHandler in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>exceptionHandler in interface io.vertx.core.streams.StreamBasepublic InputStreamToReadStream handler(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> handler)
handler in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>public void handleException(Throwable e)
public InputStreamToReadStream pause()
pause in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>public InputStreamToReadStream resume()
resume in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>public io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> endHandler(io.vertx.core.Handler<Void> handler)
endHandler in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>public io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> fetch(long amount)
fetch in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>Copyright © 2017–2021 The Apache Software Foundation. All rights reserved.