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.
|
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, write
ObjectId getObjectId()
ObjectId
for the file to be uploaded
Throws a MongoGridFSException
if the file id is not an ObjectId.org.reactivestreams.Publisher<Success> abort()