Skip to content

Commit 9299f66

Browse files
committed
---
yaml --- r: 6055 b: refs/heads/tswast-patch-1 c: c47b9db h: refs/heads/master i: 6053: f8d7f7f 6051: 7a4e8ef 6047: 7a105db
1 parent 9e7a6c1 commit 9299f66

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ refs/tags/v0.18.0: 9d193c4c4b9d1c6f21515dd8e50836b9194ec9bb
5757
refs/tags/v0.19.0: e67b56e4d8dad5f9a7b38c9b2107c23c828f2ed5
5858
refs/tags/v0.20.0: 839f7fb7156535146aa1cb2c5aadd8d375d854e8
5959
refs/tags/v0.20.1: 370471f437f1f4f68a11e068df5cd6bf39edb1fa
60-
refs/heads/tswast-patch-1: 0a28868e4eceb2526aad76ab453697768ca7fb44
60+
refs/heads/tswast-patch-1: c47b9db43f90c346a600372ac5985820728cce52
6161
refs/heads/pubsub-streaming-pull: 19262b752ee874eb2ca3b950eb2aef44d5a5267b

branches/tswast-patch-1/gcloud-java-examples/src/main/java/com/google/gcloud/examples/StorageExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ private void run(Storage storage, String bucket, String blobName, Path downloadT
329329
}
330330
if (blobInfo.size() < 1_000_000) {
331331
// Blob is small read all its content in one request
332-
byte[] content = storage.load(blobInfo.bucket(), blobInfo.name());
332+
byte[] content = storage.readAllBytes(blobInfo.bucket(), blobInfo.name());
333333
writeTo.write(content);
334334
} else {
335335
// When Blob size is big or unknown use the blob's channel reader.

branches/tswast-patch-1/gcloud-java-storage/src/main/java/com/google/gcloud/storage/Storage.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,12 +560,12 @@ public static Builder builder() {
560560
BlobInfo copy(CopyRequest copyRequest);
561561

562562
/**
563-
* Load the content of the given blob.
563+
* Reads all the bytes from a blob.
564564
*
565565
* @return the blob's content.
566566
* @throws StorageException upon failure
567567
*/
568-
byte[] load(String bucket, String blob, BlobSourceOption... options);
568+
byte[] readAllBytes(String bucket, String blob, BlobSourceOption... options);
569569

570570
/**
571571
* Send a batch request.

branches/tswast-patch-1/gcloud-java-storage/src/main/java/com/google/gcloud/storage/StorageImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ public StorageObject call() {
354354
}
355355

356356
@Override
357-
public byte[] load(String bucket, String blob, BlobSourceOption... options) {
357+
public byte[] readAllBytes(String bucket, String blob, BlobSourceOption... options) {
358358
final StorageObject storageObject = BlobInfo.of(bucket, blob).toPb();
359359
final Map<StorageRpc.Option, ?> optionsMap = optionMap(options);
360360
return runWithRetries(new Callable<byte[]>() {

branches/tswast-patch-1/gcloud-java-storage/src/main/java/com/google/gcloud/storage/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* if (blobInfo == null) {
2727
* storage.create(BlobInfo.of("bucket", "blob_name"), content);
2828
* } else {
29-
* byte[] prevContent = storage.load("bucket", "blob_name");
29+
* byte[] prevContent = storage.readAllBytes("bucket", "blob_name");
3030
* content = mergeContent(prevContent, content);
3131
* WritableByteChannel channel = storage.writer(blob);
3232
* channel.write(ByteBuffer.wrap(content));

0 commit comments

Comments
 (0)