Class AsyncInputStream
java.lang.Object
org.jboss.resteasy.reactive.client.handlers.AsyncInputStream
- All Implemented Interfaces:
io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>,io.vertx.core.streams.StreamBase,Closeable,AutoCloseable
public class AsyncInputStream
extends Object
implements io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>, Closeable
Adapt an InputStream to a ReadStream that can be used with a Pump in Vertx.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAsyncInputStream(io.vertx.core.Vertx vertx, InputStream in, int maxChunkSize) Create a new Async InputStream that can we used with a Pump -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidClose using a specific handler.endHandler(io.vertx.core.Handler<Void> endHandler) exceptionHandler(io.vertx.core.Handler<Throwable> exceptionHandler) io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> fetch(long amount) handler(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> handler) pause()resume()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.vertx.core.streams.ReadStream
pipe, pipeTo, pipeTo
-
Field Details
-
INPUTSTREAM_IS_CLOSED
- See Also:
-
-
Constructor Details
-
AsyncInputStream
Create a new Async InputStream that can we used with a Pump
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
close
Close using a specific handler. -
exceptionHandler
- Specified by:
exceptionHandlerin interfaceio.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>- Specified by:
exceptionHandlerin interfaceio.vertx.core.streams.StreamBase
-
handler
- Specified by:
handlerin interfaceio.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
-
pause
- Specified by:
pausein interfaceio.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
-
resume
- Specified by:
resumein interfaceio.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
-
fetch
public io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> fetch(long amount) - Specified by:
fetchin interfaceio.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
-
endHandler
- Specified by:
endHandlerin interfaceio.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
-