@@ -237,135 +237,6 @@ public interface AsyncGridFSBucket {
237
237
*/
238
238
AsyncGridFSUploadStream openUploadStream (AsyncClientSession clientSession , BsonValue id , String filename , GridFSUploadOptions options );
239
239
240
- /**
241
- * Uploads the contents of the given {@code AsyncInputStream} to a GridFS bucket.
242
- * <p>
243
- * Reads the contents of the user file from the {@code source} and uploads it as chunks in the chunks collection. After all the
244
- * chunks have been uploaded, it creates a files collection document for {@code filename} in the files collection.
245
- * </p>
246
- *
247
- * @param filename the filename for the stream
248
- * @param source the Stream providing the file data
249
- * @param callback with the ObjectId of the uploaded file.
250
- */
251
- void uploadFromStream (String filename , AsyncInputStream source , SingleResultCallback <ObjectId > callback );
252
-
253
- /**
254
- * Uploads the contents of the given {@code AsyncInputStream} to a GridFS bucket.
255
- * <p>
256
- * Reads the contents of the user file from the {@code source} and uploads it as chunks in the chunks collection. After all the
257
- * chunks have been uploaded, it creates a files collection document for {@code filename} in the files collection.
258
- * </p>
259
- *
260
- * @param filename the filename for the stream
261
- * @param source the Stream providing the file data
262
- * @param options the GridFSUploadOptions
263
- * @param callback with the ObjectId of the uploaded file.
264
- */
265
- void uploadFromStream (String filename , AsyncInputStream source , GridFSUploadOptions options , SingleResultCallback <ObjectId > callback );
266
-
267
- /**
268
- * Uploads the contents of the given {@code AsyncInputStream} to a GridFS bucket.
269
- * <p>
270
- * Reads the contents of the user file from the {@code source} and uploads it as chunks in the chunks collection. After all the
271
- * chunks have been uploaded, it creates a files collection document for {@code filename} in the files collection.
272
- * </p>
273
- *
274
- * @param id the custom id value of the file
275
- * @param filename the filename for the stream
276
- * @param source the Stream providing the file data
277
- * @param callback with the ObjectId of the uploaded file.
278
- */
279
- void uploadFromStream (BsonValue id , String filename , AsyncInputStream source , SingleResultCallback <Void > callback );
280
-
281
- /**
282
- * Uploads the contents of the given {@code AsyncInputStream} to a GridFS bucket.
283
- * <p>
284
- * Reads the contents of the user file from the {@code source} and uploads it as chunks in the chunks collection. After all the
285
- * chunks have been uploaded, it creates a files collection document for {@code filename} in the files collection.
286
- * </p>
287
- *
288
- * @param id the custom id value of the file
289
- * @param filename the filename for the stream
290
- * @param source the Stream providing the file data
291
- * @param options the GridFSUploadOptions
292
- * @param callback with the ObjectId of the uploaded file.
293
- */
294
- void uploadFromStream (BsonValue id , String filename , AsyncInputStream source , GridFSUploadOptions options ,
295
- SingleResultCallback <Void > callback );
296
-
297
- /**
298
- * Uploads the contents of the given {@code AsyncInputStream} to a GridFS bucket.
299
- * <p>
300
- * Reads the contents of the user file from the {@code source} and uploads it as chunks in the chunks collection. After all the
301
- * chunks have been uploaded, it creates a files collection document for {@code filename} in the files collection.
302
- * </p>
303
- *
304
- * @param clientSession the client session with which to associate this operation
305
- * @param filename the filename for the stream
306
- * @param source the Stream providing the file data
307
- * @param callback with the ObjectId of the uploaded file.
308
- * @since 3.6
309
- * @mongodb.server.release 3.6
310
- */
311
- void uploadFromStream (AsyncClientSession clientSession , String filename , AsyncInputStream source ,
312
- SingleResultCallback <ObjectId > callback );
313
-
314
- /**
315
- * Uploads the contents of the given {@code AsyncInputStream} to a GridFS bucket.
316
- * <p>
317
- * Reads the contents of the user file from the {@code source} and uploads it as chunks in the chunks collection. After all the
318
- * chunks have been uploaded, it creates a files collection document for {@code filename} in the files collection.
319
- * </p>
320
- *
321
- * @param clientSession the client session with which to associate this operation
322
- * @param filename the filename for the stream
323
- * @param source the Stream providing the file data
324
- * @param options the GridFSUploadOptions
325
- * @param callback with the ObjectId of the uploaded file.
326
- * @since 3.6
327
- * @mongodb.server.release 3.6
328
- */
329
- void uploadFromStream (AsyncClientSession clientSession , String filename , AsyncInputStream source , GridFSUploadOptions options ,
330
- SingleResultCallback <ObjectId > callback );
331
-
332
- /**
333
- * Uploads the contents of the given {@code AsyncInputStream} to a GridFS bucket.
334
- * <p>
335
- * Reads the contents of the user file from the {@code source} and uploads it as chunks in the chunks collection. After all the
336
- * chunks have been uploaded, it creates a files collection document for {@code filename} in the files collection.
337
- * </p>
338
- *
339
- * @param clientSession the client session with which to associate this operation
340
- * @param id the custom id value of the file
341
- * @param filename the filename for the stream
342
- * @param source the Stream providing the file data
343
- * @param callback with the ObjectId of the uploaded file.
344
- * @since 3.6
345
- * @mongodb.server.release 3.6
346
- */
347
- void uploadFromStream (AsyncClientSession clientSession , BsonValue id , String filename , AsyncInputStream source ,
348
- SingleResultCallback <Void > callback );
349
-
350
- /**
351
- * Uploads the contents of the given {@code AsyncInputStream} to a GridFS bucket.
352
- * <p>
353
- * Reads the contents of the user file from the {@code source} and uploads it as chunks in the chunks collection. After all the
354
- * chunks have been uploaded, it creates a files collection document for {@code filename} in the files collection.
355
- * </p>
356
- *
357
- * @param clientSession the client session with which to associate this operation
358
- * @param id the custom id value of the file
359
- * @param filename the filename for the stream
360
- * @param source the Stream providing the file data
361
- * @param options the GridFSUploadOptions
362
- * @param callback with the ObjectId of the uploaded file.
363
- * @since 3.6
364
- * @mongodb.server.release 3.6
365
- */
366
- void uploadFromStream (AsyncClientSession clientSession , BsonValue id , String filename , AsyncInputStream source ,
367
- GridFSUploadOptions options , SingleResultCallback <Void > callback );
368
-
369
240
/**
370
241
* Opens a AsyncInputStream from which the application can read the contents of the stored file specified by {@code id}.
371
242
*
@@ -448,105 +319,6 @@ void uploadFromStream(AsyncClientSession clientSession, BsonValue id, String fil
448
319
*/
449
320
AsyncGridFSDownloadStream openDownloadStream (AsyncClientSession clientSession , String filename , GridFSDownloadOptions options );
450
321
451
- /**
452
- * Downloads the contents of the stored file specified by {@code id} and writes the contents to the {@code destination}
453
- * AsyncOutputStream.
454
- *
455
- * @param id the ObjectId of the file to be written to the destination stream
456
- * @param destination the destination stream
457
- * @param callback the callback that is completed once the file has been downloaded
458
- */
459
- void downloadToStream (ObjectId id , AsyncOutputStream destination , SingleResultCallback <Long > callback );
460
-
461
- /**
462
- * Downloads the contents of the stored file specified by {@code id} and writes the contents to the {@code destination}
463
- * AsyncOutputStream.
464
- *
465
- * @param id the custom id of the file, to be written to the destination stream
466
- * @param destination the destination stream
467
- * @param callback the callback that is completed once the file has been downloaded
468
- */
469
- void downloadToStream (BsonValue id , AsyncOutputStream destination , SingleResultCallback <Long > callback );
470
-
471
- /**
472
- * Downloads the contents of the latest version of the stored file specified by {@code filename} and writes the contents to
473
- * the {@code destination} Stream.
474
- *
475
- * @param filename the name of the file to be downloaded
476
- * @param destination the destination stream
477
- * @param callback the callback that is completed once the file has been downloaded
478
- */
479
- void downloadToStream (String filename , AsyncOutputStream destination , SingleResultCallback <Long > callback );
480
-
481
- /**
482
- * Downloads the contents of the stored file specified by {@code filename} and by the revision in {@code options} and writes the
483
- * contents to the {@code destination} Stream.
484
- *
485
- * @param filename the name of the file to be downloaded
486
- * @param destination the destination stream
487
- * @param options the download options
488
- * @param callback the callback that is completed once the file has been downloaded
489
- */
490
- void downloadToStream (String filename , AsyncOutputStream destination , GridFSDownloadOptions options ,
491
- SingleResultCallback <Long > callback );
492
-
493
- /**
494
- * Downloads the contents of the stored file specified by {@code id} and writes the contents to the {@code destination}
495
- * AsyncOutputStream.
496
- *
497
- * @param clientSession the client session with which to associate this operation
498
- * @param id the ObjectId of the file to be written to the destination stream
499
- * @param destination the destination stream
500
- * @param callback the callback that is completed once the file has been downloaded
501
- * @since 3.6
502
- * @mongodb.server.release 3.6
503
- */
504
- void downloadToStream (AsyncClientSession clientSession , ObjectId id , AsyncOutputStream destination ,
505
- SingleResultCallback <Long > callback );
506
-
507
- /**
508
- * Downloads the contents of the stored file specified by {@code id} and writes the contents to the {@code destination}
509
- * AsyncOutputStream.
510
- *
511
- * @param clientSession the client session with which to associate this operation
512
- * @param id the custom id of the file, to be written to the destination stream
513
- * @param destination the destination stream
514
- * @param callback the callback that is completed once the file has been downloaded
515
- * @since 3.6
516
- * @mongodb.server.release 3.6
517
- */
518
- void downloadToStream (AsyncClientSession clientSession , BsonValue id , AsyncOutputStream destination ,
519
- SingleResultCallback <Long > callback );
520
-
521
- /**
522
- * Downloads the contents of the latest version of the stored file specified by {@code filename} and writes the contents to
523
- * the {@code destination} Stream.
524
- *
525
- * @param clientSession the client session with which to associate this operation
526
- * @param filename the name of the file to be downloaded
527
- * @param destination the destination stream
528
- * @param callback the callback that is completed once the file has been downloaded
529
- * @since 3.6
530
- * @mongodb.server.release 3.6
531
- */
532
- void downloadToStream (AsyncClientSession clientSession , String filename , AsyncOutputStream destination ,
533
- SingleResultCallback <Long > callback );
534
-
535
- /**
536
- * Downloads the contents of the stored file specified by {@code filename} and by the revision in {@code options} and writes the
537
- * contents to the {@code destination} Stream.
538
- *
539
- * @param clientSession the client session with which to associate this operation
540
- * @param filename the name of the file to be downloaded
541
- * @param destination the destination stream
542
- * @param options the download options
543
- * @param callback the callback that is completed once the file has been downloaded
544
- * @since 3.6
545
- * @mongodb.server.release 3.6
546
- */
547
- void downloadToStream (AsyncClientSession clientSession , String filename , AsyncOutputStream destination , GridFSDownloadOptions options ,
548
- SingleResultCallback <Long > callback );
549
-
550
322
/**
551
323
* Finds all documents in the files collection.
552
324
*
0 commit comments