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
- Author:
- Apache MINA SSHD Project
-
-
Field Summary
-
Fields inherited from class org.apache.sshd.sftp.client.impl.AbstractSftpFileAttributeView
options, path, provider
-
-
Constructor Summary
Constructors Constructor Description SftpPosixFileAttributeView(SftpFileSystemProvider provider, Path path, LinkOption... options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserPrincipalgetOwner()Stringname()PosixFileAttributesreadAttributes()voidsetGroup(GroupPrincipal group)voidsetOwner(UserPrincipal owner)voidsetPermissions(Set<PosixFilePermission> perms)voidsetTimes(FileTime lastModifiedTime, FileTime lastAccessTime, FileTime createTime)-
Methods inherited from class org.apache.sshd.sftp.client.impl.AbstractSftpFileAttributeView
getPath, provider, readRemoteAttributes, writeRemoteAttributes
-
-
-
-
Constructor Detail
-
SftpPosixFileAttributeView
public SftpPosixFileAttributeView(SftpFileSystemProvider provider, Path path, LinkOption... options)
-
-
Method Detail
-
name
public String name()
- Specified by:
namein interfaceAttributeView- Specified by:
namein interfaceBasicFileAttributeView- Specified by:
namein interfaceFileOwnerAttributeView- Specified by:
namein interfacePosixFileAttributeView- Overrides:
namein classAbstractSftpFileAttributeView
-
readAttributes
public PosixFileAttributes readAttributes() throws IOException
- 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
public void setPermissions(Set<PosixFilePermission> perms) throws IOException
- Specified by:
setPermissionsin interfacePosixFileAttributeView- Throws:
IOException
-
setGroup
public void setGroup(GroupPrincipal group) throws IOException
- Specified by:
setGroupin interfacePosixFileAttributeView- Throws:
IOException
-
getOwner
public UserPrincipal getOwner() throws IOException
- Specified by:
getOwnerin interfaceFileOwnerAttributeView- Throws:
IOException
-
setOwner
public void setOwner(UserPrincipal owner) throws IOException
- Specified by:
setOwnerin interfaceFileOwnerAttributeView- Throws:
IOException
-
-