Class S3FileAttributeView

  • All Implemented Interfaces:
    java.nio.file.attribute.AttributeView, java.nio.file.attribute.BasicFileAttributeView, java.nio.file.attribute.FileAttributeView

    public class S3FileAttributeView
    extends java.lang.Object
    implements java.nio.file.attribute.BasicFileAttributeView
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String name()
      Returns the name of the attribute view.
      java.nio.file.attribute.BasicFileAttributes readAttributes()
      Reads the basic file attributes as a bulk operation.
      void setTimes​(java.nio.file.attribute.FileTime lastModifiedTime, java.nio.file.attribute.FileTime lastAccessTime, java.nio.file.attribute.FileTime createTime)
      Unsupported operation, write operations are not supported.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • S3FileAttributeView

        protected S3FileAttributeView​(S3Path path)
    • Method Detail

      • name

        public java.lang.String name()
        Returns the name of the attribute view. Attribute views of this type have the name "basic".
        Specified by:
        name in interface java.nio.file.attribute.AttributeView
        Specified by:
        name in interface java.nio.file.attribute.BasicFileAttributeView
      • readAttributes

        public java.nio.file.attribute.BasicFileAttributes readAttributes()
        Reads the basic file attributes as a bulk operation.

        It is implementation specific if all file attributes are read as an atomic operation with respect to other file system operations.

        Specified by:
        readAttributes in interface java.nio.file.attribute.BasicFileAttributeView
        Returns:
        the file attributes
      • setTimes

        public void setTimes​(java.nio.file.attribute.FileTime lastModifiedTime,
                             java.nio.file.attribute.FileTime lastAccessTime,
                             java.nio.file.attribute.FileTime createTime)
        Unsupported operation, write operations are not supported.
        Specified by:
        setTimes in interface java.nio.file.attribute.BasicFileAttributeView