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 |
|---|---|
org.reactivestreams.Publisher<Success> |
abort()
Aborts the upload and deletes any data.
|
org.bson.BsonValue |
getId()
The
BsonValue id for this file. |
org.bson.types.ObjectId |
getObjectId()
Gets the
ObjectId for the file to be uploaded
Throws a MongoGridFSException if the file id is not an ObjectId. |
close, writeorg.bson.types.ObjectId getObjectId()
ObjectId for the file to be uploaded
Throws a MongoGridFSException if the file id is not an ObjectId.org.bson.BsonValue getId()
BsonValue id for this file.org.reactivestreams.Publisher<Success> abort()