Class DosAttributeProvider.View

  • All Implemented Interfaces:
    java.nio.file.attribute.AttributeView, java.nio.file.attribute.BasicFileAttributeView, java.nio.file.attribute.DosFileAttributeView, java.nio.file.attribute.FileAttributeView
    Enclosing class:
    DosAttributeProvider

    private static final class DosAttributeProvider.View
    extends AbstractAttributeView
    implements java.nio.file.attribute.DosFileAttributeView
    Implementation of DosFileAttributeView.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.nio.file.attribute.BasicFileAttributeView basicView  
    • Constructor Summary

      Constructors 
      Constructor Description
      View​(FileLookup lookup, java.nio.file.attribute.BasicFileAttributeView basicView)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String name()  
      java.nio.file.attribute.DosFileAttributes readAttributes()  
      void setArchive​(boolean value)  
      void setHidden​(boolean value)  
      void setReadOnly​(boolean value)  
      void setSystem​(boolean value)  
      void setTimes​(java.nio.file.attribute.FileTime lastModifiedTime, java.nio.file.attribute.FileTime lastAccessTime, java.nio.file.attribute.FileTime createTime)  
      • Methods inherited from class java.lang.Object

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

      • basicView

        private final java.nio.file.attribute.BasicFileAttributeView basicView
    • Constructor Detail

      • View

        public View​(FileLookup lookup,
                    java.nio.file.attribute.BasicFileAttributeView basicView)
    • 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
        Specified by:
        name in interface java.nio.file.attribute.DosFileAttributeView
      • readAttributes

        public java.nio.file.attribute.DosFileAttributes readAttributes()
                                                                 throws java.io.IOException
        Specified by:
        readAttributes in interface java.nio.file.attribute.BasicFileAttributeView
        Specified by:
        readAttributes in interface java.nio.file.attribute.DosFileAttributeView
        Throws:
        java.io.IOException
      • 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
      • setReadOnly

        public void setReadOnly​(boolean value)
                         throws java.io.IOException
        Specified by:
        setReadOnly in interface java.nio.file.attribute.DosFileAttributeView
        Throws:
        java.io.IOException
      • setHidden

        public void setHidden​(boolean value)
                       throws java.io.IOException
        Specified by:
        setHidden in interface java.nio.file.attribute.DosFileAttributeView
        Throws:
        java.io.IOException
      • setSystem

        public void setSystem​(boolean value)
                       throws java.io.IOException
        Specified by:
        setSystem in interface java.nio.file.attribute.DosFileAttributeView
        Throws:
        java.io.IOException
      • setArchive

        public void setArchive​(boolean value)
                        throws java.io.IOException
        Specified by:
        setArchive in interface java.nio.file.attribute.DosFileAttributeView
        Throws:
        java.io.IOException