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