public interface AsyncInputStream
See the client.gridfs.helpers package for adapters that create an AsyncInputStream
| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<Success> |
close()
Closes the input stream
|
org.reactivestreams.Publisher<java.lang.Integer> |
read(java.nio.ByteBuffer dst)
Reads a sequence of bytes from this stream into the given buffer.
|
org.reactivestreams.Publisher<java.lang.Integer> read(java.nio.ByteBuffer dst)
dst - the destination buffer-1 if there is no more data because the end of the stream has been reached.org.reactivestreams.Publisher<Success> close()