Sets the number of chunks to return per batch.
Sets the number of chunks to return per batch.
Can be used to control the memory consumption of this InputStream. The smaller the batchSize the lower the memory consumption and higher latency.
the batch size
this
Closes the input stream
Closes the input stream
a Observable with a single element indicating when the operation has completed
Gets the corresponding GridFSFile for the file being downloaded
Gets the corresponding GridFSFile for the file being downloaded
a Observable with a single element containing the corresponding GridFSFile for the file being downloaded
Reads a sequence of bytes from this stream into the given buffer.
Reads a sequence of bytes from this stream into the given buffer.
the destination buffer
an Observable with a single element indicating total number of bytes read into the buffer, or
-1
if there is no more data because the end of the stream has been reached.
Skips over and discards n bytes of data from this input stream.
Skips over and discards n bytes of data from this input stream.
the number of bytes to skip
an Observable with a single element indicating the total number of bytes skipped
2.6
A GridFS InputStream for downloading data from GridFS
Provides the
GridFSFile
for the file to being downloaded as well as theread
methods of aAsyncInputStream
1.2