Package com.azure.storage.blob.nio
Class AzureBasicFileAttributeView
- java.lang.Object
-
- com.azure.storage.blob.nio.AzureBasicFileAttributeView
-
- All Implemented Interfaces:
AttributeView
,BasicFileAttributeView
,FileAttributeView
public final class AzureBasicFileAttributeView extends Object implements BasicFileAttributeView
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
name()
Returns the name of the attribute view:"azureBasic"
AzureBasicFileAttributes
readAttributes()
Reads the basic file attributes as a bulk operation.void
setTimes(FileTime lastModifiedTime, FileTime lastAccessTime, FileTime createTime)
Unsupported.
-
-
-
Method Detail
-
name
public String 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
public AzureBasicFileAttributes readAttributes() throws IOException
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
-
-