public interface GridFSUploadStream extends AsyncOutputStream
Provides the id for the file to be uploaded as well as the write methods of a AsyncOutputStream
| Modifier and Type | Method and Description |
|---|---|
void |
abort(SingleResultCallback<Void> callback)
Aborts the upload and deletes any data.
|
BsonValue |
getId()
The
BsonValue id for this file. |
ObjectId |
getObjectId()
Gets the
ObjectId for the file to be uploaded
Throws a MongoGridFSException if the file id is not an ObjectId. |
close, writeObjectId getObjectId()
ObjectId for the file to be uploaded
Throws a MongoGridFSException if the file id is not an ObjectId.void abort(SingleResultCallback<Void> callback)
callback - the callback that is triggered when the abort and cleanup has finished