public class SftpPosixFileAttributeView extends AbstractSftpFileAttributeView implements java.nio.file.attribute.PosixFileAttributeView
options, path, providerlog| 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, writeRemoteAttributesgetSimplifiedLoggerpublic 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.AttributeViewname in interface java.nio.file.attribute.BasicFileAttributeViewname in interface java.nio.file.attribute.FileOwnerAttributeViewname in interface java.nio.file.attribute.PosixFileAttributeViewname in class AbstractSftpFileAttributeViewpublic java.nio.file.attribute.PosixFileAttributes readAttributes()
throws java.io.IOException
readAttributes in interface java.nio.file.attribute.BasicFileAttributeViewreadAttributes in interface java.nio.file.attribute.PosixFileAttributeViewjava.io.IOExceptionpublic 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.BasicFileAttributeViewjava.io.IOExceptionpublic void setPermissions(java.util.Set<java.nio.file.attribute.PosixFilePermission> perms)
throws java.io.IOException
setPermissions in interface java.nio.file.attribute.PosixFileAttributeViewjava.io.IOExceptionpublic void setGroup(java.nio.file.attribute.GroupPrincipal group)
throws java.io.IOException
setGroup in interface java.nio.file.attribute.PosixFileAttributeViewjava.io.IOExceptionpublic java.nio.file.attribute.UserPrincipal getOwner()
throws java.io.IOException
getOwner in interface java.nio.file.attribute.FileOwnerAttributeViewjava.io.IOExceptionpublic void setOwner(java.nio.file.attribute.UserPrincipal owner)
throws java.io.IOException
setOwner in interface java.nio.file.attribute.FileOwnerAttributeViewjava.io.IOException