Class AzureBasicFileAttributes

  • All Implemented Interfaces:
    BasicFileAttributes

    public final class AzureBasicFileAttributes
    extends Object
    implements BasicFileAttributes
    Provides support for basic file attributes.

    The properties available on this type are a strict subset of AzureBlobFileAttributes, and the two types have the same network behavior. Therefore, while this type is offered for compliance with the NIO spec, AzureBlobFileAttributes is generally preferred.

    Some attributes are not supported. Refer to the javadocs on each method for more information.

    • Method Detail

      • lastAccessTime

        public FileTime lastAccessTime()
        Returns the time of last modification.

        Last access time is not supported by the blob service. In this case, it is typical for implementations to return the lastModifiedTime().

        Specified by:
        lastAccessTime in interface BasicFileAttributes
        Returns:
        the time of last modification.
      • creationTime

        public FileTime creationTime()
        Returns the creation time. The creation time is the time that the file was created.
        Specified by:
        creationTime in interface BasicFileAttributes
        Returns:
        The creation time.
      • isRegularFile

        public boolean isRegularFile()
        Tells whether the file is a regular file with opaque content.
        Specified by:
        isRegularFile in interface BasicFileAttributes
        Returns:
        whether the file is a regular file.
      • isSymbolicLink

        public boolean isSymbolicLink()
        Tells whether the file is a symbolic link.
        Specified by:
        isSymbolicLink in interface BasicFileAttributes
        Returns:
        false. Symbolic links are not supported.
      • isOther

        public boolean isOther()
        Tells whether the file is something other than a regular file, directory, or symbolic link.
        Specified by:
        isOther in interface BasicFileAttributes
        Returns:
        false. No other object types are supported.
      • size

        public long size()
        Returns the size of the file (in bytes).
        Specified by:
        size in interface BasicFileAttributes
        Returns:
        the size of the file
      • fileKey

        public Object fileKey()
        Returns the url of the resource.
        Specified by:
        fileKey in interface BasicFileAttributes
        Returns:
        The file key, which is the url.