public class SftpPosixFileAttributeView extends AbstractSftpFileAttributeView implements java.nio.file.attribute.PosixFileAttributeView
options, path, provider
log
Constructor and Description |
---|
SftpPosixFileAttributeView(SftpFileSystemProvider provider,
java.nio.file.Path path,
java.nio.file.LinkOption... options) |
Modifier and Type | Method and Description |
---|---|
java.nio.file.attribute.UserPrincipal |
getOwner() |
java.lang.String |
name() |
java.nio.file.attribute.PosixFileAttributes |
readAttributes() |
void |
setGroup(java.nio.file.attribute.GroupPrincipal group) |
void |
setOwner(java.nio.file.attribute.UserPrincipal owner) |
void |
setPermissions(java.util.Set<java.nio.file.attribute.PosixFilePermission> perms) |
void |
setTimes(java.nio.file.attribute.FileTime lastModifiedTime,
java.nio.file.attribute.FileTime lastAccessTime,
java.nio.file.attribute.FileTime createTime) |
getPath, provider, readRemoteAttributes, writeRemoteAttributes
public SftpPosixFileAttributeView(SftpFileSystemProvider provider, java.nio.file.Path path, java.nio.file.LinkOption... options)
public java.lang.String name()
name
in interface java.nio.file.attribute.AttributeView
name
in interface java.nio.file.attribute.BasicFileAttributeView
name
in interface java.nio.file.attribute.FileOwnerAttributeView
name
in interface java.nio.file.attribute.PosixFileAttributeView
name
in class AbstractSftpFileAttributeView
public java.nio.file.attribute.PosixFileAttributes readAttributes() throws java.io.IOException
readAttributes
in interface java.nio.file.attribute.BasicFileAttributeView
readAttributes
in interface java.nio.file.attribute.PosixFileAttributeView
java.io.IOException
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
setTimes
in interface java.nio.file.attribute.BasicFileAttributeView
java.io.IOException
public void setPermissions(java.util.Set<java.nio.file.attribute.PosixFilePermission> perms) throws java.io.IOException
setPermissions
in interface java.nio.file.attribute.PosixFileAttributeView
java.io.IOException
public void setGroup(java.nio.file.attribute.GroupPrincipal group) throws java.io.IOException
setGroup
in interface java.nio.file.attribute.PosixFileAttributeView
java.io.IOException
public java.nio.file.attribute.UserPrincipal getOwner() throws java.io.IOException
getOwner
in interface java.nio.file.attribute.FileOwnerAttributeView
java.io.IOException
public void setOwner(java.nio.file.attribute.UserPrincipal owner) throws java.io.IOException
setOwner
in interface java.nio.file.attribute.FileOwnerAttributeView
java.io.IOException