public interface AsyncInputStream
See the com.mongodb.async.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<Integer> |
read(ByteBuffer dst)
Reads a sequence of bytes from this stream into the given buffer.
|
org.reactivestreams.Publisher<Integer> read(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()