public final class AzureBlobFileAttributeView extends Object implements BasicFileAttributeView
All attributes are retrieved from the file system as a bulk operation.
AzureBlobFileAttributeView.setTimes(FileTime, FileTime, FileTime)
is not supported.
Modifier and Type | Method and Description |
---|---|
String |
name()
Returns the name of the attribute view:
"azureBlob" |
AzureBlobFileAttributes |
readAttributes()
Reads the file attributes as a bulk operation.
|
void |
setBlobHttpHeaders(BlobHttpHeaders headers)
Sets the
BlobHttpHeaders as an atomic operation. |
void |
setMetadata(Map<String,String> metadata)
Sets the metadata as an atomic operation.
|
void |
setTier(AccessTier tier)
Sets the
AccessTier on the file. |
void |
setTimes(FileTime lastModifiedTime,
FileTime lastAccessTime,
FileTime createTime)
Unsupported.
|
public String name()
"azureBlob"
name
in interface AttributeView
name
in interface BasicFileAttributeView
"azureBlob"
public AzureBlobFileAttributes readAttributes() throws IOException
All file attributes are read as an atomic operation with respect to other file system operations. A fresh copy is retrieved every time this method is called.
readAttributes
in interface BasicFileAttributeView
AzureBlobFileAttributes
IOException
- if an IOException occurs.public void setBlobHttpHeaders(BlobHttpHeaders headers) throws IOException
BlobHttpHeaders
as an atomic operation.
See BlobClientBase.setHttpHeaders(BlobHttpHeaders)
for more information.
headers
- BlobHttpHeaders
IOException
- if an IOException occurs.public void setMetadata(Map<String,String> metadata) throws IOException
See BlobClientBase.setMetadata(Map)
for more information.
metadata
- The metadata to associate with the blobIOException
- if an IOException occurs.public void setTier(AccessTier tier) throws IOException
AccessTier
on the file.
See BlobClientBase.setAccessTier(AccessTier)
for more information.
tier
- AccessTier
IOException
- if an IOException occurs.public void setTimes(FileTime lastModifiedTime, FileTime lastAccessTime, FileTime createTime) throws IOException
setTimes
in interface BasicFileAttributeView
lastModifiedTime
- the new last modified time, or null to not change the valuelastAccessTime
- the last access time, or null to not change the valuecreateTime
- the file's create time, or null to not change the valueUnsupportedOperationException
- Operation not supported.IOException
- neverCopyright © 2021 Microsoft Corporation. All rights reserved.