@@ -472,15 +472,15 @@ public interface GridFSBucket {
472
472
* Downloads the contents of the stored file specified by {@code id} and writes the contents to the {@code destination} Stream.
473
473
*
474
474
* @param id the ObjectId of the file to be written to the destination stream
475
- * @param destination the destination stream
475
+ * @param destination the destination stream. Its {@link OutputStream#flush()} is not guaranteed to be called by this method.
476
476
*/
477
477
void downloadToStream (ObjectId id , OutputStream destination );
478
478
479
479
/**
480
480
* Downloads the contents of the stored file specified by {@code id} and writes the contents to the {@code destination} Stream.
481
481
*
482
482
* @param id the custom id of the file, to be written to the destination stream
483
- * @param destination the destination stream
483
+ * @param destination the destination stream. Its {@link OutputStream#flush()} is not guaranteed to be called by this method.
484
484
*/
485
485
void downloadToStream (BsonValue id , OutputStream destination );
486
486
@@ -489,7 +489,7 @@ public interface GridFSBucket {
489
489
* the {@code destination} Stream.
490
490
*
491
491
* @param filename the name of the file to be downloaded
492
- * @param destination the destination stream
492
+ * @param destination the destination stream. Its {@link OutputStream#flush()} is not guaranteed to be called by this method.
493
493
* @since 3.3
494
494
*/
495
495
void downloadToStream (String filename , OutputStream destination );
@@ -500,7 +500,7 @@ public interface GridFSBucket {
500
500
*
501
501
* @param filename the name of the file to be downloaded
502
502
* @param destination the destination stream
503
- * @param options the download options
503
+ * @param options the download options. Its {@link OutputStream#flush()} is not guaranteed to be called by this method.
504
504
* @since 3.3
505
505
*/
506
506
void downloadToStream (String filename , OutputStream destination , GridFSDownloadOptions options );
@@ -510,7 +510,7 @@ public interface GridFSBucket {
510
510
*
511
511
* @param clientSession the client session with which to associate this operation
512
512
* @param id the ObjectId of the file to be written to the destination stream
513
- * @param destination the destination stream
513
+ * @param destination the destination stream. Its {@link OutputStream#flush()} is not guaranteed to be called by this method.
514
514
* @since 3.6
515
515
* @mongodb.server.release 3.6
516
516
*/
@@ -521,7 +521,7 @@ public interface GridFSBucket {
521
521
*
522
522
* @param clientSession the client session with which to associate this operation
523
523
* @param id the custom id of the file, to be written to the destination stream
524
- * @param destination the destination stream
524
+ * @param destination the destination stream. Its {@link OutputStream#flush()} is not guaranteed to be called by this method.
525
525
* @since 3.6
526
526
* @mongodb.server.release 3.6
527
527
*/
@@ -533,7 +533,7 @@ public interface GridFSBucket {
533
533
*
534
534
* @param clientSession the client session with which to associate this operation
535
535
* @param filename the name of the file to be downloaded
536
- * @param destination the destination stream
536
+ * @param destination the destination stream. Its {@link OutputStream#flush()} is not guaranteed to be called by this method.
537
537
* @since 3.6
538
538
* @mongodb.server.release 3.6
539
539
*/
@@ -545,7 +545,7 @@ public interface GridFSBucket {
545
545
*
546
546
* @param clientSession the client session with which to associate this operation
547
547
* @param filename the name of the file to be downloaded
548
- * @param destination the destination stream
548
+ * @param destination the destination stream. Its {@link OutputStream#flush()} is not guaranteed to be called by this method.
549
549
* @param options the download options
550
550
* @since 3.6
551
551
* @mongodb.server.release 3.6
0 commit comments