@@ -154,7 +154,7 @@ public BlobId id() {
154154 * @throws StorageException upon failure
155155 */
156156 public boolean exists () {
157- return storage .get (info .bucket (), info . name ()) != null ;
157+ return storage .get (info .blobId ()) != null ;
158158 }
159159
160160 /**
@@ -164,7 +164,7 @@ public boolean exists() {
164164 * @throws StorageException upon failure
165165 */
166166 public byte [] content (Storage .BlobSourceOption ... options ) {
167- return storage .readAllBytes (info .bucket (), info . name (), options );
167+ return storage .readAllBytes (info .blobId (), options );
168168 }
169169
170170 /**
@@ -175,7 +175,7 @@ public byte[] content(Storage.BlobSourceOption... options) {
175175 * @throws StorageException upon failure
176176 */
177177 public Blob reload (BlobSourceOption ... options ) {
178- return new Blob (storage , storage .get (info .bucket (), info . name (), convert (info , options )));
178+ return new Blob (storage , storage .get (info .blobId (), convert (info , options )));
179179 }
180180
181181 /**
@@ -205,7 +205,7 @@ public Blob update(BlobInfo blobInfo, BlobTargetOption... options) {
205205 * @throws StorageException upon failure
206206 */
207207 public boolean delete (BlobSourceOption ... options ) {
208- return storage .delete (info .bucket (), info . name (), convert (info , options ));
208+ return storage .delete (info .blobId (), convert (info , options ));
209209 }
210210
211211 /**
@@ -246,7 +246,7 @@ public Blob copyTo(String targetBucket, String targetBlob, BlobSourceOption... o
246246 * @throws StorageException upon failure
247247 */
248248 public BlobReadChannel reader (BlobSourceOption ... options ) {
249- return storage .reader (info .bucket (), info . name (), convert (info , options ));
249+ return storage .reader (info .blobId (), convert (info , options ));
250250 }
251251
252252 /**
0 commit comments