Class BlobFile
-
- All Implemented Interfaces:
com.microsoft.azure.toolkit.lib.common.model.AzResource,com.microsoft.azure.toolkit.lib.common.model.AzResourceBase,com.microsoft.azure.toolkit.lib.common.model.Deletable,com.microsoft.azure.toolkit.lib.common.model.Refreshable,IBlobFile,StorageFile
- Direct Known Subclasses:
BlobFileDraft
public class BlobFile extends com.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<BlobFile,IBlobFile,com.azure.storage.blob.models.BlobItem> implements com.microsoft.azure.toolkit.lib.common.model.Deletable, IBlobFile
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.microsoft.azure.toolkit.lib.common.model.AzResource
com.microsoft.azure.toolkit.lib.common.model.AzResource.Draft<T extends com.microsoft.azure.toolkit.lib.common.model.AzResource,R extends Object>, com.microsoft.azure.toolkit.lib.common.model.AzResource.None, com.microsoft.azure.toolkit.lib.common.model.AzResource.Status
-
Nested classes/interfaces inherited from interface com.microsoft.azure.toolkit.lib.common.model.AzResourceBase
com.microsoft.azure.toolkit.lib.common.model.AzResourceBase.FormalStatus
-
Nested classes/interfaces inherited from interface com.microsoft.azure.toolkit.lib.storage.model.StorageFile
StorageFile.Draft<T extends StorageFile,R>
-
-
Field Summary
Fields Modifier and Type Field Description private BlobFileModulesubFileModule
-
Constructor Summary
Constructors Modifier Constructor Description BlobFile(BlobFile origin)copy constructorprotectedBlobFile(String name, BlobFileModule module)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddownload(OutputStream output)voiddownload(Path dest)com.azure.storage.blob.BlobContainerClientgetClient()BlobContainergetContainer()java.time.OffsetDateTimegetCreationTime()java.time.OffsetDateTimegetLastModified()StringgetPath()longgetSize()List<com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule<?,?,?>>getSubModules()StringgetUrl()booleanisDirectory()StringloadStatus(com.azure.storage.blob.models.BlobItem remote)-
Methods inherited from class com.microsoft.azure.toolkit.lib.common.model.AbstractAzResource
canEqual, delete, deleteFromCache, doModify, doModify, equals, exists, getId, getModule, getName, getParent, getRemote, getResourceGroup, getResourceGroupName, getStatus, getSubModule, hashCode, invalidateCache, isDraft, isDraftForCreating, isDraftForUpdating, loadRemote, refresh, refreshRemoteFromAzure, reloadStatus, remoteOptional, setRemote, setStatus, toString, update, updateAdditionalProperties
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.microsoft.azure.toolkit.lib.common.model.AzResource
delete, exists, getFullResourceType, getId, getModule, getName, getPortalUrl, getResourceGroupName, getResourceTypeName, getStatus, getSubscription, getSubscriptionId, id, name, refresh
-
Methods inherited from interface com.microsoft.azure.toolkit.lib.common.model.AzResourceBase
getFormalStatus
-
Methods inherited from interface com.microsoft.azure.toolkit.lib.storage.model.StorageFile
getFile, getSubFileModule
-
-
-
-
Field Detail
-
subFileModule
private final BlobFileModule subFileModule
-
-
Method Detail
-
getSubModules
@Nonnull public List<com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule<?,?,?>> getSubModules()
-
loadStatus
@Nonnull public String loadStatus(@Nonnull com.azure.storage.blob.models.BlobItem remote)
-
getSize
public long getSize()
- Specified by:
getSizein interfaceStorageFile
-
getLastModified
@Nullable public java.time.OffsetDateTime getLastModified()
- Specified by:
getLastModifiedin interfaceStorageFile
-
getCreationTime
@Nullable public java.time.OffsetDateTime getCreationTime()
- Specified by:
getCreationTimein interfaceStorageFile
-
download
public void download(OutputStream output)
- Specified by:
downloadin interfaceStorageFile
-
download
public void download(Path dest)
- Specified by:
downloadin interfaceStorageFile
-
getClient
@Nullable public com.azure.storage.blob.BlobContainerClient getClient()
- Specified by:
getClientin interfaceIBlobFile- Specified by:
getClientin interfaceStorageFile
-
getPath
public String getPath()
- Specified by:
getPathin interfaceStorageFile
-
getUrl
public String getUrl()
- Specified by:
getUrlin interfaceStorageFile
-
getContainer
public BlobContainer getContainer()
- Specified by:
getContainerin interfaceIBlobFile
-
isDirectory
public boolean isDirectory()
- Specified by:
isDirectoryin interfaceStorageFile
-
-