Package org.apache.sshd.sftp.client.fs
Class SftpPosixFileAttributeView
java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.sftp.client.impl.AbstractSftpFileAttributeView
org.apache.sshd.sftp.client.fs.SftpPosixFileAttributeView
- All Implemented Interfaces:
AttributeView
,BasicFileAttributeView
,FileAttributeView
,FileOwnerAttributeView
,PosixFileAttributeView
public class SftpPosixFileAttributeView
extends AbstractSftpFileAttributeView
implements PosixFileAttributeView
-
Field Summary
Fields inherited from class org.apache.sshd.sftp.client.impl.AbstractSftpFileAttributeView
options, path, provider
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
Constructor Summary
ConstructorsConstructorDescriptionSftpPosixFileAttributeView
(SftpFileSystemProvider provider, Path path, LinkOption... options) -
Method Summary
Modifier and TypeMethodDescriptiongetOwner()
name()
void
setGroup
(GroupPrincipal group) void
setOwner
(UserPrincipal owner) void
setPermissions
(Set<PosixFilePermission> perms) void
Methods inherited from class org.apache.sshd.sftp.client.impl.AbstractSftpFileAttributeView
getPath, provider, readRemoteAttributes, writeRemoteAttributes
-
Constructor Details
-
SftpPosixFileAttributeView
public SftpPosixFileAttributeView(SftpFileSystemProvider provider, Path path, LinkOption... options)
-
-
Method Details
-
name
- Specified by:
name
in interfaceAttributeView
- Specified by:
name
in interfaceBasicFileAttributeView
- Specified by:
name
in interfaceFileOwnerAttributeView
- Specified by:
name
in interfacePosixFileAttributeView
- Overrides:
name
in classAbstractSftpFileAttributeView
-
readAttributes
- Specified by:
readAttributes
in interfaceBasicFileAttributeView
- Specified by:
readAttributes
in interfacePosixFileAttributeView
- Throws:
IOException
-
setTimes
public void setTimes(FileTime lastModifiedTime, FileTime lastAccessTime, FileTime createTime) throws IOException - Specified by:
setTimes
in interfaceBasicFileAttributeView
- Throws:
IOException
-
setPermissions
- Specified by:
setPermissions
in interfacePosixFileAttributeView
- Throws:
IOException
-
setGroup
- Specified by:
setGroup
in interfacePosixFileAttributeView
- Throws:
IOException
-
getOwner
- Specified by:
getOwner
in interfaceFileOwnerAttributeView
- Throws:
IOException
-
setOwner
- Specified by:
setOwner
in interfaceFileOwnerAttributeView
- Throws:
IOException
-