All Methods Static Methods Instance Methods Concrete Methods
Modifier and Type |
Method and Description |
void |
close()
Close the client and release its resources
|
MongoGridFsClient |
delete(String id)
Deletes a file by it's ID
|
MongoGridFsClient |
delete(String id,
Handler<AsyncResult<Void>> resultHandler)
Deletes a file by it's ID
|
MongoGridFsClient |
downloadByFileName(WriteStream<Buffer> stream,
String fileName) |
MongoGridFsClient |
downloadByFileName(WriteStream<Buffer> stream,
String fileName,
Handler<AsyncResult<Long>> resultHandler) |
MongoGridFsClient |
downloadByFileNameWithOptions(WriteStream<Buffer> stream,
String fileName,
GridFsDownloadOptions options) |
MongoGridFsClient |
downloadByFileNameWithOptions(WriteStream<Buffer> stream,
String fileName,
GridFsDownloadOptions options,
Handler<AsyncResult<Long>> resultHandler) |
MongoGridFsClient |
downloadById(WriteStream<Buffer> stream,
String id) |
MongoGridFsClient |
downloadById(WriteStream<Buffer> stream,
String id,
Handler<AsyncResult<Long>> resultHandler) |
MongoGridFsClient |
downloadFile(String fileName)
Downloads a file.
|
MongoGridFsClient |
downloadFile(String fileName,
Handler<AsyncResult<Long>> resultHandler)
Downloads a file.
|
MongoGridFsClient |
downloadFileAs(String fileName,
String newFileName)
Downloads a file and gives it a new name.
|
MongoGridFsClient |
downloadFileAs(String fileName,
String newFileName,
Handler<AsyncResult<Long>> resultHandler)
Downloads a file and gives it a new name.
|
MongoGridFsClient |
downloadFileByID(String id,
String fileName)
Downloads a file using the ID generated by GridFs.
|
MongoGridFsClient |
downloadFileByID(String id,
String fileName,
Handler<AsyncResult<Long>> resultHandler)
Downloads a file using the ID generated by GridFs.
|
MongoGridFsClient |
drop()
Drops the entire file bucket with all of its contents
|
MongoGridFsClient |
drop(Handler<AsyncResult<Void>> resultHandler)
Drops the entire file bucket with all of its contents
|
boolean |
equals(Object o) |
MongoGridFsClient |
findAllIds()
Finds all file ids in the bucket
|
MongoGridFsClient |
findAllIds(Handler<AsyncResult<List<String>>> resultHandler)
Finds all file ids in the bucket
|
MongoGridFsClient |
findIds(JsonObject query)
Finds all file ids that match a query.
|
MongoGridFsClient |
findIds(JsonObject query,
Handler<AsyncResult<List<String>>> resultHandler)
Finds all file ids that match a query.
|
MongoGridFsClient |
getDelegate() |
int |
hashCode() |
static MongoGridFsClient |
newInstance(MongoGridFsClient arg) |
ReadStream<Buffer> |
readByFileName(String fileName)
Read file by name to ReadStream
|
ReadStream<Buffer> |
readByFileNameWithOptions(String fileName,
GridFsDownloadOptions options)
Read file by name to ReadStream with options
|
ReadStream<Buffer> |
readById(String id)
Read file by id to ReadStream
|
Single<Void> |
rxDelete(String id)
Deletes a file by it's ID
|
Single<Long> |
rxDownloadByFileName(WriteStream<Buffer> stream,
String fileName) |
Single<Long> |
rxDownloadByFileNameWithOptions(WriteStream<Buffer> stream,
String fileName,
GridFsDownloadOptions options) |
Single<Long> |
rxDownloadById(WriteStream<Buffer> stream,
String id) |
Single<Long> |
rxDownloadFile(String fileName)
Downloads a file.
|
Single<Long> |
rxDownloadFileAs(String fileName,
String newFileName)
Downloads a file and gives it a new name.
|
Single<Long> |
rxDownloadFileByID(String id,
String fileName)
Downloads a file using the ID generated by GridFs.
|
Single<Void> |
rxDrop()
Drops the entire file bucket with all of its contents
|
Single<List<String>> |
rxFindAllIds()
Finds all file ids in the bucket
|
Single<List<String>> |
rxFindIds(JsonObject query)
Finds all file ids that match a query.
|
Single<String> |
rxUploadByFileName(Observable<Buffer> stream,
String fileName) |
Single<String> |
rxUploadByFileName(ReadStream<Buffer> stream,
String fileName) |
Single<String> |
rxUploadByFileNameWithOptions(Observable<Buffer> stream,
String fileName,
GridFsUploadOptions options) |
Single<String> |
rxUploadByFileNameWithOptions(ReadStream<Buffer> stream,
String fileName,
GridFsUploadOptions options) |
Single<String> |
rxUploadFile(String fileName)
Upload a file to gridfs
|
Single<String> |
rxUploadFileWithOptions(String fileName,
GridFsUploadOptions options)
Upload a file to gridfs with options
|
String |
toString() |
MongoGridFsClient |
uploadByFileName(Observable<Buffer> stream,
String fileName) |
MongoGridFsClient |
uploadByFileName(Observable<Buffer> stream,
String fileName,
Handler<AsyncResult<String>> resultHandler) |
MongoGridFsClient |
uploadByFileName(ReadStream<Buffer> stream,
String fileName) |
MongoGridFsClient |
uploadByFileName(ReadStream<Buffer> stream,
String fileName,
Handler<AsyncResult<String>> resultHandler) |
MongoGridFsClient |
uploadByFileNameWithOptions(Observable<Buffer> stream,
String fileName,
GridFsUploadOptions options) |
MongoGridFsClient |
uploadByFileNameWithOptions(Observable<Buffer> stream,
String fileName,
GridFsUploadOptions options,
Handler<AsyncResult<String>> resultHandler) |
MongoGridFsClient |
uploadByFileNameWithOptions(ReadStream<Buffer> stream,
String fileName,
GridFsUploadOptions options) |
MongoGridFsClient |
uploadByFileNameWithOptions(ReadStream<Buffer> stream,
String fileName,
GridFsUploadOptions options,
Handler<AsyncResult<String>> resultHandler) |
MongoGridFsClient |
uploadFile(String fileName)
Upload a file to gridfs
|
MongoGridFsClient |
uploadFile(String fileName,
Handler<AsyncResult<String>> resultHandler)
Upload a file to gridfs
|
MongoGridFsClient |
uploadFileWithOptions(String fileName,
GridFsUploadOptions options)
Upload a file to gridfs with options
|
MongoGridFsClient |
uploadFileWithOptions(String fileName,
GridFsUploadOptions options,
Handler<AsyncResult<String>> resultHandler)
Upload a file to gridfs with options
|