public final class AzureBasicFileAttributeView extends Object implements BasicFileAttributeView
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.
AzureBasicFileAttributeView.setTimes(FileTime, FileTime, FileTime)
is not supported.
Modifier and Type | Method and 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.
|
public String name()
"azureBasic"
name
in interface AttributeView
name
in interface BasicFileAttributeView
"azureBasic"
public AzureBasicFileAttributes readAttributes() throws IOException
All file attributes are read as an atomic operation with respect to other file system operations.
readAttributes
in interface BasicFileAttributeView
AzureBasicFileAttributes
IOException
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.