Class SftpPosixFileAttributeView

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

    public class SftpPosixFileAttributeView
    extends AbstractSftpFileAttributeView
    implements java.nio.file.attribute.PosixFileAttributeView
    • Constructor Detail

      • SftpPosixFileAttributeView

        public SftpPosixFileAttributeView​(SftpFileSystemProvider provider,
                                          java.nio.file.Path path,
                                          java.nio.file.LinkOption... options)
    • 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.FileOwnerAttributeView
        Specified by:
        name in interface java.nio.file.attribute.PosixFileAttributeView
        Overrides:
        name in class AbstractSftpFileAttributeView
      • readAttributes

        public java.nio.file.attribute.PosixFileAttributes readAttributes()
                                                                   throws java.io.IOException
        Specified by:
        readAttributes in interface java.nio.file.attribute.BasicFileAttributeView
        Specified by:
        readAttributes in interface java.nio.file.attribute.PosixFileAttributeView
        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
      • setPermissions

        public void setPermissions​(java.util.Set<java.nio.file.attribute.PosixFilePermission> perms)
                            throws java.io.IOException
        Specified by:
        setPermissions in interface java.nio.file.attribute.PosixFileAttributeView
        Throws:
        java.io.IOException
      • setGroup

        public void setGroup​(java.nio.file.attribute.GroupPrincipal group)
                      throws java.io.IOException
        Specified by:
        setGroup in interface java.nio.file.attribute.PosixFileAttributeView
        Throws:
        java.io.IOException
      • 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