public static class VertxStream.ReadStreamStream extends java.lang.Object implements Stream, io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
Constructor and Description |
---|
ReadStreamStream(io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> delegate) |
ReadStreamStream(io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> delegate,
java.util.Optional<java.lang.String> mime,
java.util.Optional<java.lang.String> charset,
java.util.Optional<java.lang.String> filename) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.String> |
charset()
A non empty
Optional will alter the Content-Type header
when the Stream is sent over http |
VertxStream.ReadStreamStream |
endHandler(io.vertx.core.Handler<java.lang.Void> endHandler) |
VertxStream.ReadStreamStream |
exceptionHandler(io.vertx.core.Handler<java.lang.Throwable> handler) |
io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> |
fetch(long amount) |
java.util.Optional<java.lang.String> |
fileName()
A non empty
Optional will add a content-disposition
filename header when the Stream is sent over http. |
VertxStream.ReadStreamStream |
handler(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> handler) |
java.util.Optional<java.lang.String> |
mime()
A non empty
Optional will alter the Content-Type header
when the Stream is sent over http |
VertxStream.ReadStreamStream |
pause() |
VertxStream.ReadStreamStream |
resume() |
public ReadStreamStream(io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> delegate)
public ReadStreamStream(io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> delegate, java.util.Optional<java.lang.String> mime, java.util.Optional<java.lang.String> charset, java.util.Optional<java.lang.String> filename)
public java.util.Optional<java.lang.String> charset()
Stream
Optional
will alter the Content-Type header
when the Stream
is sent over httppublic java.util.Optional<java.lang.String> mime()
Stream
Optional
will alter the Content-Type header
when the Stream
is sent over httppublic java.util.Optional<java.lang.String> fileName()
Stream
Optional
will add a content-disposition
filename header when the Stream
is sent over http. Only ascii chars
will be preserved when the filename is sent.public VertxStream.ReadStreamStream endHandler(io.vertx.core.Handler<java.lang.Void> endHandler)
endHandler
in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
public VertxStream.ReadStreamStream 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 VertxStream.ReadStreamStream pause()
pause
in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
public VertxStream.ReadStreamStream resume()
resume
in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
public VertxStream.ReadStreamStream exceptionHandler(io.vertx.core.Handler<java.lang.Throwable> handler)
exceptionHandler
in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
exceptionHandler
in interface io.vertx.core.streams.StreamBase
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 © 2021. All Rights Reserved.