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, providerFields 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()voidsetGroup(GroupPrincipal group) voidsetOwner(UserPrincipal owner) voidsetPermissions(Set<PosixFilePermission> perms) voidMethods 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:
namein interfaceAttributeView- Specified by:
namein interfaceBasicFileAttributeView- Specified by:
namein interfaceFileOwnerAttributeView- Specified by:
namein interfacePosixFileAttributeView- Overrides:
namein classAbstractSftpFileAttributeView
-
readAttributes
- Specified by:
readAttributesin interfaceBasicFileAttributeView- Specified by:
readAttributesin interfacePosixFileAttributeView- Throws:
IOException
-
setTimes
public void setTimes(FileTime lastModifiedTime, FileTime lastAccessTime, FileTime createTime) throws IOException - Specified by:
setTimesin interfaceBasicFileAttributeView- Throws:
IOException
-
setPermissions
- Specified by:
setPermissionsin interfacePosixFileAttributeView- Throws:
IOException
-
setGroup
- Specified by:
setGroupin interfacePosixFileAttributeView- Throws:
IOException
-
getOwner
- Specified by:
getOwnerin interfaceFileOwnerAttributeView- Throws:
IOException
-
setOwner
- Specified by:
setOwnerin interfaceFileOwnerAttributeView- Throws:
IOException
-