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 | Method and Description |
---|---|
void |
GridFSBucket.downloadToStream(BsonValue id,
AsyncOutputStream destination,
SingleResultCallback<Long> callback)
Downloads the contents of the stored file specified by
id and writes the contents to the destination
AsyncOutputStream. |
void |
GridFSBucket.downloadToStream(ObjectId id,
AsyncOutputStream destination,
SingleResultCallback<Long> callback)
Downloads the contents of the stored file specified by
id and writes the contents to the destination
AsyncOutputStream. |
void |
GridFSBucket.downloadToStream(String filename,
AsyncOutputStream destination,
GridFSDownloadOptions options,
SingleResultCallback<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 |
GridFSBucket.downloadToStream(String filename,
AsyncOutputStream destination,
SingleResultCallback<Long> callback)
Downloads the contents of the latest version of the stored file specified by
filename and writes the contents to
the destination Stream. |
Modifier and Type | Method and Description |
---|---|
static AsyncOutputStream |
AsynchronousChannelHelper.channelToOutputStream(AsynchronousByteChannel asynchronousByteChannel)
Converts a
AsynchronousByteChannel into a AsyncOutputStream |
static AsyncOutputStream |
AsynchronousChannelHelper.channelToOutputStream(AsynchronousFileChannel asynchronousFileChannel)
Converts a
AsynchronousFileChannel into a AsyncOutputStream |
static AsyncOutputStream |
AsyncStreamHelper.toAsyncOutputStream(byte[] dstBytes)
Converts a
byte[] into a AsyncOutputStream |
static AsyncOutputStream |
AsyncStreamHelper.toAsyncOutputStream(ByteBuffer dstByteBuffer)
Converts a
ByteBuffer into a AsyncOutputStream |
static AsyncOutputStream |
AsyncStreamHelper.toAsyncOutputStream(OutputStream outputStream)
Converts a
OutputStream into a AsyncOutputStream |
Copyright © 2017. All Rights Reserved.