Class UserDefinedAttributeProvider.View

  • All Implemented Interfaces:
    java.nio.file.attribute.AttributeView, java.nio.file.attribute.FileAttributeView, java.nio.file.attribute.UserDefinedFileAttributeView
    Enclosing class:
    UserDefinedAttributeProvider

    private static class UserDefinedAttributeProvider.View
    extends AbstractAttributeView
    implements java.nio.file.attribute.UserDefinedFileAttributeView
    Implementation of UserDefinedFileAttributeView.
    • Constructor Summary

      Constructors 
      Constructor Description
      View​(FileLookup lookup)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(java.lang.String name)  
      private byte[] getStoredBytes​(java.lang.String name)  
      java.util.List<java.lang.String> list()  
      java.lang.String name()  
      int read​(java.lang.String name, java.nio.ByteBuffer dst)  
      int size​(java.lang.String name)  
      int write​(java.lang.String name, java.nio.ByteBuffer src)  
      • Methods inherited from class java.lang.Object

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

    • 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.UserDefinedFileAttributeView
      • list

        public java.util.List<java.lang.String> list()
                                              throws java.io.IOException
        Specified by:
        list in interface java.nio.file.attribute.UserDefinedFileAttributeView
        Throws:
        java.io.IOException
      • getStoredBytes

        private byte[] getStoredBytes​(java.lang.String name)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • size

        public int size​(java.lang.String name)
                 throws java.io.IOException
        Specified by:
        size in interface java.nio.file.attribute.UserDefinedFileAttributeView
        Throws:
        java.io.IOException
      • read

        public int read​(java.lang.String name,
                        java.nio.ByteBuffer dst)
                 throws java.io.IOException
        Specified by:
        read in interface java.nio.file.attribute.UserDefinedFileAttributeView
        Throws:
        java.io.IOException
      • write

        public int write​(java.lang.String name,
                         java.nio.ByteBuffer src)
                  throws java.io.IOException
        Specified by:
        write in interface java.nio.file.attribute.UserDefinedFileAttributeView
        Throws:
        java.io.IOException
      • delete

        public void delete​(java.lang.String name)
                    throws java.io.IOException
        Specified by:
        delete in interface java.nio.file.attribute.UserDefinedFileAttributeView
        Throws:
        java.io.IOException