@@ -156,29 +156,32 @@ public Blob(Storage storage, BlobInfo info) {
156156
157157 /**
158158 * Creates a {@code Blob} object for the provided bucket and blob names. Performs an RPC call to
159- * get the latest blob information.
159+ * get the latest blob information. Returns {@code null} if the blob does not exist.
160160 *
161161 * @param storage the storage service used for issuing requests
162162 * @param bucket bucket's name
163+ * @param options blob get options
163164 * @param blob blob's name
164- * @return the {@code Blob} object or {@code null} if not found.
165+ * @return the {@code Blob} object or {@code null} if not found
165166 * @throws StorageException upon failure
166167 */
167- public static Blob load (Storage storage , String bucket , String blob ) {
168- return load (storage , BlobId .of (bucket , blob ));
168+ public static Blob load (Storage storage , String bucket , String blob ,
169+ Storage .BlobGetOption ... options ) {
170+ return load (storage , BlobId .of (bucket , blob ), options );
169171 }
170172
171173 /**
172174 * Creates a {@code Blob} object for the provided {@code blobId}. Performs an RPC call to get the
173- * latest blob information.
175+ * latest blob information. Returns {@code null} if the blob does not exist.
174176 *
175177 * @param storage the storage service used for issuing requests
176178 * @param blobId blob's identifier
177- * @return the {@code Blob} object or {@code null} if not found.
179+ * @param options blob get options
180+ * @return the {@code Blob} object or {@code null} if not found
178181 * @throws StorageException upon failure
179182 */
180- public static Blob load (Storage storage , BlobId blobId ) {
181- BlobInfo info = storage .get (blobId );
183+ public static Blob load (Storage storage , BlobId blobId , Storage . BlobGetOption ... options ) {
184+ BlobInfo info = storage .get (blobId , options );
182185 return info != null ? new Blob (storage , info ) : null ;
183186 }
184187
@@ -221,14 +224,14 @@ public byte[] content(Storage.BlobSourceOption... options) {
221224 }
222225
223226 /**
224- * Fetches current blob's latest information.
227+ * Fetches current blob's latest information. Returns {@code null} if the blob does not exist.
225228 *
226229 * @param options blob read options
227- * @return a {@code Blob} object with latest information
230+ * @return a {@code Blob} object with latest information or {@code null} if not found
228231 * @throws StorageException upon failure
229232 */
230233 public Blob reload (BlobSourceOption ... options ) {
231- return new Blob (storage , storage . get ( info .blobId (), toGetOptions (info , options ) ));
234+ return Blob . load (storage , info .blobId (), toGetOptions (info , options ));
232235 }
233236
234237 /**
@@ -368,7 +371,7 @@ public Storage storage() {
368371 * @param storage the storage service used to issue the request
369372 * @param blobs the blobs to get
370373 * @return an immutable list of {@code Blob} objects. If a blob does not exist or access to it has
371- * been denied the corresponding item in the list is {@code null}.
374+ * been denied the corresponding item in the list is {@code null}
372375 * @throws StorageException upon failure
373376 */
374377 public static List <Blob > get (final Storage storage , BlobId ... blobs ) {
@@ -397,7 +400,7 @@ public Blob apply(BlobInfo blobInfo) {
397400 * @param storage the storage service used to issue the request
398401 * @param infos the blobs to update
399402 * @return an immutable list of {@code Blob} objects. If a blob does not exist or access to it has
400- * been denied the corresponding item in the list is {@code null}.
403+ * been denied the corresponding item in the list is {@code null}
401404 * @throws StorageException upon failure
402405 */
403406 public static List <Blob > update (final Storage storage , BlobInfo ... infos ) {
@@ -422,7 +425,7 @@ public Blob apply(BlobInfo blobInfo) {
422425 * @param blobs the blobs to delete
423426 * @return an immutable list of booleans. If a blob has been deleted the corresponding item in the
424427 * list is {@code true}. If a blob was not found, deletion failed or access to the resource
425- * was denied the corresponding item is {@code false}.
428+ * was denied the corresponding item is {@code false}
426429 * @throws StorageException upon failure
427430 */
428431 public static List <Boolean > delete (Storage storage , BlobId ... blobs ) {
0 commit comments