Class ShrinkWrapFileAttributeView

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

    final class ShrinkWrapFileAttributeView
    extends java.lang.Object
    implements java.nio.file.attribute.BasicFileAttributeView
    ShrinkWrap implementation of a BasicFileAttributeView; immutable and Thread-safe
    • Method Detail

      • name

        public java.lang.String name()
        Specified by:
        name in interface java.nio.file.attribute.AttributeView
        Specified by:
        name in interface java.nio.file.attribute.BasicFileAttributeView
        See Also:
        BasicFileAttributeView.name()
      • readAttributes

        public java.nio.file.attribute.BasicFileAttributes readAttributes()
                                                                   throws java.io.IOException
        Specified by:
        readAttributes in interface java.nio.file.attribute.BasicFileAttributeView
        Throws:
        java.io.IOException
        See Also:
        BasicFileAttributeView.readAttributes()
      • setTimes

        public void setTimes​(java.nio.file.attribute.FileTime lastModifiedTime,
                             java.nio.file.attribute.FileTime lastAccessTime,
                             java.nio.file.attribute.FileTime createTime)
                      throws java.io.IOException
        Specified by:
        setTimes in interface java.nio.file.attribute.BasicFileAttributeView
        Throws:
        java.io.IOException
        See Also:
        BasicFileAttributeView.setTimes(java.nio.file.attribute.FileTime, java.nio.file.attribute.FileTime, java.nio.file.attribute.FileTime)