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 TypeMethodDescriptionvoid
close()
void
Close 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, wait
Methods 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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
close
Close using a specific handler. -
exceptionHandler
- Specified by:
exceptionHandler
in interfaceio.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
- Specified by:
exceptionHandler
in interfaceio.vertx.core.streams.StreamBase
-
handler
- Specified by:
handler
in interfaceio.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
-
pause
- Specified by:
pause
in interfaceio.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
-
resume
- Specified by:
resume
in 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:
fetch
in interfaceio.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
-
endHandler
- Specified by:
endHandler
in interfaceio.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
-