Condividi tramite


AzureBasicFileAttributeView Class

  • java.lang.Object
    • com.azure.storage.blob.nio.AzureBasicFileAttributeView

Implements

public final class AzureBasicFileAttributeView
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 lastModifiedTime, FileTime lastAccessTime, FileTime createTime) is not supported.

Method Summary

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.

Methods inherited from java.lang.Object

Method Details

name

public String name()

Returns the name of the attribute view: "azureBasic"

Returns:

the name of the attribute view: "azureBasic"

readAttributes

public AzureBasicFileAttributes 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.

Returns:

Throws:

setTimes

public void setTimes(FileTime lastModifiedTime, FileTime lastAccessTime, FileTime createTime)

Unsupported.

Parameters:

lastModifiedTime - the new last modified time, or null to not change the value
lastAccessTime - the last access time, or null to not change the value
createTime - the file's create time, or null to not change the value

Throws:

IOException

- Operation not supported.

Applies to