Package com.azure.storage.blob.nio
Class AzureBasicFileAttributeView
java.lang.Object
com.azure.storage.blob.nio.AzureBasicFileAttributeView
- All Implemented Interfaces:
AttributeView
,BasicFileAttributeView
,FileAttributeView
Provides support for basic file attributes.
The operations supported by this view and the attributes it reads are a strict subset of
AzureBlobFileAttributeView
and has the same network behavior. Therefore, while this type is offered for
compliance with the NIO spec, AzureBlobFileAttributeView
is generally preferred.
setTimes(FileTime, FileTime, FileTime)
is not supported.
-
Method Summary
Modifier and TypeMethodDescriptionname()
Returns the name of the attribute view:"azureBasic"
Reads the basic file attributes as a bulk operation.void
Unsupported.
-
Method Details
-
name
Returns the name of the attribute view:"azureBasic"
- Specified by:
name
in interfaceAttributeView
- Specified by:
name
in interfaceBasicFileAttributeView
- Returns:
- the name of the attribute view:
"azureBasic"
-
readAttributes
Reads the basic file attributes as a bulk operation.All file attributes are read as an atomic operation with respect to other file system operations.
- Specified by:
readAttributes
in interfaceBasicFileAttributeView
- Returns:
AzureBasicFileAttributes
- Throws:
IOException
-
setTimes
public void setTimes(FileTime lastModifiedTime, FileTime lastAccessTime, FileTime createTime) throws IOException Unsupported.- Specified by:
setTimes
in interfaceBasicFileAttributeView
- Parameters:
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 value- Throws:
UnsupportedOperationException
- Operation not supported.IOException
- never
-