public class BlobService extends Object
Constructor and Description |
---|
BlobService(com.google.cloud.storage.Storage storageInstance) |
Modifier and Type | Method and Description |
---|---|
com.google.cloud.storage.Blob |
createBlob(com.google.cloud.storage.BlobInfo blobInfo,
byte[] data,
com.google.cloud.storage.Storage.BlobTargetOption... blobTargetOption) |
Boolean |
deleteBlob(com.google.cloud.storage.BlobId blobId) |
com.google.cloud.storage.Blob |
getBlob(com.google.cloud.storage.BlobId blobId,
com.google.cloud.storage.Storage.BlobGetOption... blobGetOptions) |
List<com.google.cloud.storage.Blob> |
getBlobs(String bucket,
com.google.cloud.storage.Storage.BlobListOption... blobListOption) |
com.google.cloud.storage.Blob |
relocateBlob(com.google.cloud.storage.BlobId blobId,
String targetBucket,
String targetBlob) |
URL |
signUrlBlobUrl(com.google.cloud.storage.Blob blob,
String keyPath,
TimeUnit timeUnit,
Long timeAmount) |
com.google.cloud.storage.Blob |
updateBlob(com.google.cloud.storage.Blob blob,
Map<String,String> updateData) |
public com.google.cloud.storage.Blob createBlob(com.google.cloud.storage.BlobInfo blobInfo, byte[] data, com.google.cloud.storage.Storage.BlobTargetOption... blobTargetOption) throws GoogleStorageApiException
GoogleStorageApiException
public Boolean deleteBlob(com.google.cloud.storage.BlobId blobId) throws GoogleStorageApiException
GoogleStorageApiException
public com.google.cloud.storage.Blob getBlob(com.google.cloud.storage.BlobId blobId, com.google.cloud.storage.Storage.BlobGetOption... blobGetOptions) throws GoogleStorageApiException
GoogleStorageApiException
public com.google.cloud.storage.Blob relocateBlob(com.google.cloud.storage.BlobId blobId, String targetBucket, String targetBlob) throws GoogleStorageApiException
GoogleStorageApiException
public URL signUrlBlobUrl(com.google.cloud.storage.Blob blob, String keyPath, TimeUnit timeUnit, Long timeAmount) throws FileNotFoundException, IOException, GoogleStorageApiException
public com.google.cloud.storage.Blob updateBlob(com.google.cloud.storage.Blob blob, Map<String,String> updateData) throws GoogleStorageApiException
GoogleStorageApiException
public List<com.google.cloud.storage.Blob> getBlobs(String bucket, com.google.cloud.storage.Storage.BlobListOption... blobListOption) throws GoogleStorageApiException
GoogleStorageApiException
Copyright © 2010–2018. All rights reserved.