Package | Description |
---|---|
com.mongodb.async.client.gridfs |
Contains the classes for supporting MongoDB's specification for storing very large files, GridFS.
|
com.mongodb.client.gridfs |
This package contains the new GridFS implementation
|
com.mongodb.client.gridfs.model |
This package contains models for use with GridFS
|
Modifier and Type | Method and Description |
---|---|
GridFSUploadStream |
GridFSBucket.openUploadStream(BsonValue id,
String filename,
GridFSUploadOptions options)
Opens a AsyncOutputStream that the application can write the contents of the file to.
|
GridFSUploadStream |
GridFSBucket.openUploadStream(String filename,
GridFSUploadOptions options)
Opens a AsyncOutputStream that the application can write the contents of the file to.
|
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(String filename,
AsyncInputStream source,
GridFSUploadOptions options,
SingleResultCallback<ObjectId> callback)
Uploads the contents of the given
AsyncInputStream to a GridFS bucket. |
Modifier and Type | Method and Description |
---|---|
GridFSUploadStream |
GridFSBucket.openUploadStream(BsonValue id,
String filename,
GridFSUploadOptions options)
Opens a Stream that the application can write the contents of the file to.
|
GridFSUploadStream |
GridFSBucket.openUploadStream(String filename,
GridFSUploadOptions options)
Opens a Stream that the application can write the contents of the file to.
|
void |
GridFSBucket.uploadFromStream(BsonValue id,
String filename,
InputStream source,
GridFSUploadOptions options)
Uploads the contents of the given
InputStream to a GridFS bucket. |
ObjectId |
GridFSBucket.uploadFromStream(String filename,
InputStream source,
GridFSUploadOptions options)
Uploads the contents of the given
InputStream to a GridFS bucket. |
Modifier and Type | Method and Description |
---|---|
GridFSUploadOptions |
GridFSUploadOptions.chunkSizeBytes(Integer chunkSizeBytes)
Sets the chunk size in bytes.
|
GridFSUploadOptions |
GridFSUploadOptions.metadata(Document metadata)
Sets metadata to stored alongside the filename in the files collection
|
Copyright © 2017. All Rights Reserved.