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 |
GridFSDownloadStream
A GridFS InputStream for downloading data from GridFS
|
Modifier and Type | Method and Description |
---|---|
void |
GridFSBucket.uploadFromStream(BsonValue id,
String filename,
AsyncInputStream source,
GridFSUploadOptions options,
SingleResultCallback<Void> callback)
Uploads the contents of the given
AsyncInputStream to a GridFS bucket. |
void |
GridFSBucket.uploadFromStream(BsonValue id,
String filename,
AsyncInputStream source,
SingleResultCallback<Void> callback)
Uploads the contents of the given
AsyncInputStream to a GridFS bucket. |
void |
GridFSBucket.uploadFromStream(String filename,
AsyncInputStream source,
GridFSUploadOptions options,
SingleResultCallback<ObjectId> callback)
Uploads the contents of the given
AsyncInputStream to a GridFS bucket. |
void |
GridFSBucket.uploadFromStream(String filename,
AsyncInputStream source,
SingleResultCallback<ObjectId> callback)
Uploads the contents of the given
AsyncInputStream to a GridFS bucket. |
Modifier and Type | Method and Description |
---|---|
static AsyncInputStream |
AsynchronousChannelHelper.channelToInputStream(AsynchronousByteChannel asynchronousByteChannel)
Converts a
AsynchronousByteChannel into a AsyncInputStream |
static AsyncInputStream |
AsynchronousChannelHelper.channelToInputStream(AsynchronousFileChannel asynchronousFileChannel)
Converts a
AsynchronousFileChannel into a AsyncInputStream |
static AsyncInputStream |
AsyncStreamHelper.toAsyncInputStream(byte[] srcBytes)
Converts a
byte[] into a AsyncInputStream |
static AsyncInputStream |
AsyncStreamHelper.toAsyncInputStream(ByteBuffer srcByteBuffer)
Converts a
ByteBuffer into a AsyncInputStream |
static AsyncInputStream |
AsyncStreamHelper.toAsyncInputStream(InputStream inputStream)
Converts a
InputStream into a AsyncInputStream |
Copyright © 2017. All Rights Reserved.