Skip to content

Commit f09410d

Browse files
author
Ajay Kannan
committed
Document that input stream is closed in storage.create(BlobInfo, InputStream)
1 parent c5f50e0 commit f09410d

File tree

1 file changed

+2
-1
lines changed
  • gcloud-java-storage/src/main/java/com/google/gcloud/storage

1 file changed

+2
-1
lines changed

gcloud-java-storage/src/main/java/com/google/gcloud/storage/Storage.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1236,7 +1236,8 @@ private static void checkContentType(BlobInfo blobInfo) throws IllegalArgumentEx
12361236
* Create a new blob. Direct upload is used to upload {@code content}. For large content,
12371237
* {@link #writer} is recommended as it uses resumable upload. By default any md5 and crc32c
12381238
* values in the given {@code blobInfo} are ignored unless requested via the
1239-
* {@code BlobWriteOption.md5Match} and {@code BlobWriteOption.crc32cMatch} options.
1239+
* {@code BlobWriteOption.md5Match} and {@code BlobWriteOption.crc32cMatch} options. The given
1240+
* input stream is closed upon success.
12401241
*
12411242
* @return a complete blob information
12421243
* @throws StorageException upon failure

0 commit comments

Comments
 (0)