public class GoogleCloudStorageEntry extends java.lang.Object implements ObjectStorageEntry<com.google.cloud.storage.Blob>
ObjectStorageEntry implementation for Google Cloud Storage.| Constructor and Description |
|---|
GoogleCloudStorageEntry(com.google.cloud.storage.Blob blob) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<java.lang.String> |
getContentType() |
java.io.InputStream |
getInputStream() |
java.lang.String |
getKey()
The object path on object storage.
|
java.util.Map<java.lang.String,java.lang.String> |
getMetadata() |
com.google.cloud.storage.Blob |
getNativeEntry() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoStreamedFile, toSystemFilepublic GoogleCloudStorageEntry(com.google.cloud.storage.Blob blob)
@NonNull public java.lang.String getKey()
ObjectStorageEntry/path/togetKey in interface ObjectStorageEntry<com.google.cloud.storage.Blob>@NonNull public java.io.InputStream getInputStream()
getInputStream in interface ObjectStorageEntry<com.google.cloud.storage.Blob>@NonNull public com.google.cloud.storage.Blob getNativeEntry()
getNativeEntry in interface ObjectStorageEntry<com.google.cloud.storage.Blob>@NonNull public java.util.Map<java.lang.String,java.lang.String> getMetadata()
getMetadata in interface ObjectStorageEntry<com.google.cloud.storage.Blob>@NonNull public java.util.Optional<java.lang.String> getContentType()
getContentType in interface ObjectStorageEntry<com.google.cloud.storage.Blob>