Publisher<ByteBuffer> instead@Deprecated 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()
Deprecated.
Closes the input stream
|
org.reactivestreams.Publisher<Integer> |
read(ByteBuffer dst)
Deprecated.
Reads a sequence of bytes from this stream into the given buffer.
|
org.reactivestreams.Publisher<Long> |
skip(long bytesToSkip)
Deprecated.
Skips over and discards n bytes of data from this input stream.
|
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<Long> skip(long bytesToSkip)
bytesToSkip - the number of bytes to skiporg.reactivestreams.Publisher<Success> close()