Package | Description |
---|---|
com.mongodb.async.client.gridfs |
Contains the classes for supporting MongoDB's specification for storing very large files, GridFS.
|
com.mongodb.async.client.gridfs.helpers |
Contains helper classes to create
AsyncInputStream and
AsyncOutputStream 's from external sources. |
Modifier and Type | Interface and Description |
---|---|
interface |
GridFSUploadStream
A GridFS OutputStream for uploading data into GridFS
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
GridFSUploadStreamImpl |
Modifier and Type | Method and Description |
---|---|
private void |
GridFSBucketImpl.downloadToAsyncOutputStream(GridFSDownloadStream downloadStream,
AsyncOutputStream destination,
SingleResultCallback<java.lang.Long> callback) |
void |
GridFSBucketImpl.downloadToStream(BsonValue id,
AsyncOutputStream destination,
SingleResultCallback<java.lang.Long> callback) |
void |
GridFSBucket.downloadToStream(BsonValue id,
AsyncOutputStream destination,
SingleResultCallback<java.lang.Long> callback)
Downloads the contents of the stored file specified by
id and writes the contents to the destination
AsyncOutputStream. |
void |
GridFSBucketImpl.downloadToStream(ClientSession clientSession,
BsonValue id,
AsyncOutputStream destination,
SingleResultCallback<java.lang.Long> callback) |
void |
GridFSBucket.downloadToStream(ClientSession clientSession,
BsonValue id,
AsyncOutputStream destination,
SingleResultCallback<java.lang.Long> callback)
Downloads the contents of the stored file specified by
id and writes the contents to the destination
AsyncOutputStream. |
void |
GridFSBucketImpl.downloadToStream(ClientSession clientSession,
ObjectId id,
AsyncOutputStream destination,
SingleResultCallback<java.lang.Long> callback) |
void |
GridFSBucket.downloadToStream(ClientSession clientSession,
ObjectId id,
AsyncOutputStream destination,
SingleResultCallback<java.lang.Long> callback)
Downloads the contents of the stored file specified by
id and writes the contents to the destination
AsyncOutputStream. |
void |
GridFSBucketImpl.downloadToStream(ClientSession clientSession,
java.lang.String filename,
AsyncOutputStream destination,
GridFSDownloadOptions options,
SingleResultCallback<java.lang.Long> callback) |
void |
GridFSBucket.downloadToStream(ClientSession clientSession,
java.lang.String filename,
AsyncOutputStream destination,
GridFSDownloadOptions options,
SingleResultCallback<java.lang.Long> callback)
Downloads the contents of the stored file specified by
filename and by the revision in options and writes the
contents to the destination Stream. |
void |
GridFSBucketImpl.downloadToStream(ClientSession clientSession,
java.lang.String filename,
AsyncOutputStream destination,
SingleResultCallback<java.lang.Long> callback) |
void |
GridFSBucket.downloadToStream(ClientSession clientSession,
java.lang.String filename,
AsyncOutputStream destination,
SingleResultCallback<java.lang.Long> callback)
Downloads the contents of the latest version of the stored file specified by
filename and writes the contents to
the destination Stream. |
void |
GridFSBucketImpl.downloadToStream(ObjectId id,
AsyncOutputStream destination,
SingleResultCallback<java.lang.Long> callback) |
void |
GridFSBucket.downloadToStream(ObjectId id,
AsyncOutputStream destination,
SingleResultCallback<java.lang.Long> callback)
Downloads the contents of the stored file specified by
id and writes the contents to the destination
AsyncOutputStream. |
void |
GridFSBucketImpl.downloadToStream(java.lang.String filename,
AsyncOutputStream destination,
GridFSDownloadOptions options,
SingleResultCallback<java.lang.Long> callback) |
void |
GridFSBucket.downloadToStream(java.lang.String filename,
AsyncOutputStream destination,
GridFSDownloadOptions options,
SingleResultCallback<java.lang.Long> callback)
Downloads the contents of the stored file specified by
filename and by the revision in options and writes the
contents to the destination Stream. |
void |
GridFSBucketImpl.downloadToStream(java.lang.String filename,
AsyncOutputStream destination,
SingleResultCallback<java.lang.Long> callback) |
void |
GridFSBucket.downloadToStream(java.lang.String filename,
AsyncOutputStream destination,
SingleResultCallback<java.lang.Long> callback)
Downloads the contents of the latest version of the stored file specified by
filename and writes the contents to
the destination Stream. |
private void |
GridFSBucketImpl.readAndWriteOutputStream(AsyncOutputStream destination,
GridFSDownloadStream downloadStream,
java.nio.ByteBuffer buffer,
long amountRead,
SingleResultCallback<java.lang.Long> callback) |
Modifier and Type | Method and Description |
---|---|
static AsyncOutputStream |
AsynchronousChannelHelper.channelToOutputStream(java.nio.channels.AsynchronousByteChannel asynchronousByteChannel)
Converts a
AsynchronousByteChannel into a AsyncOutputStream |
static AsyncOutputStream |
AsynchronousChannelHelper.channelToOutputStream(java.nio.channels.AsynchronousFileChannel asynchronousFileChannel)
Converts a
AsynchronousFileChannel into a AsyncOutputStream |
static AsyncOutputStream |
AsyncStreamHelper.toAsyncOutputStream(byte[] dstBytes)
Converts a
byte[] into a AsyncOutputStream |
static AsyncOutputStream |
AsyncStreamHelper.toAsyncOutputStream(java.nio.ByteBuffer dstByteBuffer)
Converts a
ByteBuffer into a AsyncOutputStream |
static AsyncOutputStream |
AsyncStreamHelper.toAsyncOutputStream(java.io.OutputStream outputStream)
Converts a
OutputStream into a AsyncOutputStream |