public final class AzureBlobFileAttributes extends Object implements BasicFileAttributes
Some of the attributes inherited from BasicFileAttributes
are not supported. See the docs on each method for
more information.
Modifier and Type | Method and Description |
---|---|
AccessTier |
accessTier()
Returns the tier of the blob.
|
OffsetDateTime |
accessTierChangeTime()
Returns the time when the access tier for the blob was last changed.
|
ArchiveStatus |
archiveStatus()
Returns the archive status of the blob.
|
BlobHttpHeaders |
blobHttpHeaders()
Returns the
BlobHttpHeaders of the blob. |
BlobType |
blobType()
Returns the type of the blob.
|
OffsetDateTime |
copyCompletionTime()
Returns the completion time of the last copy operation.
|
String |
copyId()
Returns the identifier of the last copy operation.
|
String |
copyProgress()
Returns the number of bytes copied and total bytes in the source from the last copy operation (bytes copied/total
bytes).
|
String |
copySource()
Returns the source blob URL from the last copy operation.
|
CopyStatusType |
copyStatus()
Returns the status of the last copy operation.
|
String |
copyStatusDescription()
Returns the description of the last copy failure, this is set when the
getCopyStatus is
failed or aborted . |
FileTime |
creationTime()
Returns the creation time.
|
String |
eTag()
Returns the eTag of the blob.
|
Object |
fileKey()
Returns the url of the resource.
|
Boolean |
isAccessTierInferred()
Returns the status of the tier being inferred for the blob.
|
boolean |
isDirectory()
Tells whether the file is a directory.
|
boolean |
isOther()
Tells whether the file is something other than a regular file, directory, or symbolic link.
|
boolean |
isRegularFile()
Tells whether the file is a regular file with opaque content.
|
Boolean |
isServerEncrypted()
Returns the status of the blob being encrypted on the server.
|
boolean |
isSymbolicLink()
Tells whether the file is a symbolic link.
|
FileTime |
lastAccessTime()
Returns the time of last modification.
|
FileTime |
lastModifiedTime()
Returns the time of last modification.
|
Map<String,String> |
metadata()
Returns the metadata associated with this blob.
|
long |
size()
Returns the size of the file (in bytes).
|
public FileTime creationTime()
creationTime
in interface BasicFileAttributes
public FileTime lastModifiedTime()
lastModifiedTime
in interface BasicFileAttributes
public String eTag()
public BlobHttpHeaders blobHttpHeaders()
BlobHttpHeaders
of the blob.BlobHttpHeaders
public BlobType blobType()
public String copyId()
public CopyStatusType copyStatus()
public String copySource()
public String copyProgress()
public OffsetDateTime copyCompletionTime()
public String copyStatusDescription()
getCopyStatus
is
failed
or aborted
. If this blob hasn't been the
target of a copy operation or has been modified since this won't be set.public Boolean isServerEncrypted()
public AccessTier accessTier()
public Boolean isAccessTierInferred()
public ArchiveStatus archiveStatus()
public OffsetDateTime accessTierChangeTime()
public Map<String,String> metadata()
public FileTime lastAccessTime()
Last access time is not supported by the blob service. In this case, it is typical for implementations to return
the AzureBlobFileAttributes.lastModifiedTime()
.
lastAccessTime
in interface BasicFileAttributes
public boolean isRegularFile()
isRegularFile
in interface BasicFileAttributes
public boolean isDirectory()
Will only return true if the directory is a concrete directory. See
AzureFileSystemProvider.createDirectory(Path, FileAttribute[])
for more information on virtual and
concrete directories.
isDirectory
in interface BasicFileAttributes
public boolean isSymbolicLink()
isSymbolicLink
in interface BasicFileAttributes
public boolean isOther()
isOther
in interface BasicFileAttributes
public long size()
size
in interface BasicFileAttributes
public Object fileKey()
fileKey
in interface BasicFileAttributes
Copyright © 2021 Microsoft Corporation. All rights reserved.