Class OwnerAttributeProvider.View

  • All Implemented Interfaces:
    java.nio.file.attribute.AttributeView, java.nio.file.attribute.FileAttributeView, java.nio.file.attribute.FileOwnerAttributeView
    Enclosing class:
    OwnerAttributeProvider

    private static final class OwnerAttributeProvider.View
    extends AbstractAttributeView
    implements java.nio.file.attribute.FileOwnerAttributeView
    Implementation of FileOwnerAttributeView.
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.nio.file.attribute.UserPrincipal getOwner()  
      java.lang.String name()  
      void setOwner​(java.nio.file.attribute.UserPrincipal owner)  
      • 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.FileOwnerAttributeView
      • getOwner

        public java.nio.file.attribute.UserPrincipal getOwner()
                                                       throws java.io.IOException
        Specified by:
        getOwner in interface java.nio.file.attribute.FileOwnerAttributeView
        Throws:
        java.io.IOException
      • setOwner

        public void setOwner​(java.nio.file.attribute.UserPrincipal owner)
                      throws java.io.IOException
        Specified by:
        setOwner in interface java.nio.file.attribute.FileOwnerAttributeView
        Throws:
        java.io.IOException