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 | Class and Description |
---|---|
(package private) class |
GridFSDownloadStreamImpl |
Modifier and Type | Method and Description |
---|---|
private void |
GridFSBucketImpl.executeUploadFromStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename,
AsyncInputStream source,
GridFSUploadOptions options,
SingleResultCallback<java.lang.Void> callback) |
private void |
GridFSBucketImpl.readAndWriteInputStream(AsyncInputStream source,
GridFSUploadStream uploadStream,
java.nio.ByteBuffer buffer,
SingleResultCallback<java.lang.Void> callback) |
void |
GridFSBucketImpl.uploadFromStream(BsonValue id,
java.lang.String filename,
AsyncInputStream source,
GridFSUploadOptions options,
SingleResultCallback<java.lang.Void> callback) |
void |
GridFSBucket.uploadFromStream(BsonValue id,
java.lang.String filename,
AsyncInputStream source,
GridFSUploadOptions options,
SingleResultCallback<java.lang.Void> callback)
Uploads the contents of the given
AsyncInputStream to a GridFS bucket. |
void |
GridFSBucketImpl.uploadFromStream(BsonValue id,
java.lang.String filename,
AsyncInputStream source,
SingleResultCallback<java.lang.Void> callback) |
void |
GridFSBucket.uploadFromStream(BsonValue id,
java.lang.String filename,
AsyncInputStream source,
SingleResultCallback<java.lang.Void> callback)
Uploads the contents of the given
AsyncInputStream to a GridFS bucket. |
void |
GridFSBucketImpl.uploadFromStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename,
AsyncInputStream source,
GridFSUploadOptions options,
SingleResultCallback<java.lang.Void> callback) |
void |
GridFSBucket.uploadFromStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename,
AsyncInputStream source,
GridFSUploadOptions options,
SingleResultCallback<java.lang.Void> callback)
Uploads the contents of the given
AsyncInputStream to a GridFS bucket. |
void |
GridFSBucketImpl.uploadFromStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename,
AsyncInputStream source,
SingleResultCallback<java.lang.Void> callback) |
void |
GridFSBucket.uploadFromStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename,
AsyncInputStream source,
SingleResultCallback<java.lang.Void> callback)
Uploads the contents of the given
AsyncInputStream to a GridFS bucket. |
void |
GridFSBucketImpl.uploadFromStream(ClientSession clientSession,
java.lang.String filename,
AsyncInputStream source,
GridFSUploadOptions options,
SingleResultCallback<ObjectId> callback) |
void |
GridFSBucket.uploadFromStream(ClientSession clientSession,
java.lang.String filename,
AsyncInputStream source,
GridFSUploadOptions options,
SingleResultCallback<ObjectId> callback)
Uploads the contents of the given
AsyncInputStream to a GridFS bucket. |
void |
GridFSBucketImpl.uploadFromStream(ClientSession clientSession,
java.lang.String filename,
AsyncInputStream source,
SingleResultCallback<ObjectId> callback) |
void |
GridFSBucket.uploadFromStream(ClientSession clientSession,
java.lang.String filename,
AsyncInputStream source,
SingleResultCallback<ObjectId> callback)
Uploads the contents of the given
AsyncInputStream to a GridFS bucket. |
void |
GridFSBucketImpl.uploadFromStream(java.lang.String filename,
AsyncInputStream source,
GridFSUploadOptions options,
SingleResultCallback<ObjectId> callback) |
void |
GridFSBucket.uploadFromStream(java.lang.String filename,
AsyncInputStream source,
GridFSUploadOptions options,
SingleResultCallback<ObjectId> callback)
Uploads the contents of the given
AsyncInputStream to a GridFS bucket. |
void |
GridFSBucketImpl.uploadFromStream(java.lang.String filename,
AsyncInputStream source,
SingleResultCallback<ObjectId> callback) |
void |
GridFSBucket.uploadFromStream(java.lang.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(java.nio.channels.AsynchronousByteChannel asynchronousByteChannel)
Converts a
AsynchronousByteChannel into a AsyncInputStream |
static AsyncInputStream |
AsynchronousChannelHelper.channelToInputStream(java.nio.channels.AsynchronousFileChannel asynchronousFileChannel)
Converts a
AsynchronousFileChannel into a AsyncInputStream |
static AsyncInputStream |
AsyncStreamHelper.toAsyncInputStream(byte[] srcBytes)
Converts a
byte[] into a AsyncInputStream |
static AsyncInputStream |
AsyncStreamHelper.toAsyncInputStream(java.nio.ByteBuffer srcByteBuffer)
Converts a
ByteBuffer into a AsyncInputStream |
static AsyncInputStream |
AsyncStreamHelper.toAsyncInputStream(java.io.InputStream inputStream)
Converts a
InputStream into a AsyncInputStream |