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
-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
-
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 UserPrincipal
getOwner()
String
name()
PosixFileAttributes
readAttributes()
void
setGroup(GroupPrincipal group)
void
setOwner(UserPrincipal owner)
void
setPermissions(Set<PosixFilePermission> perms)
void
setTimes(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:
name
in interfaceAttributeView
- Specified by:
name
in interfaceBasicFileAttributeView
- Specified by:
name
in interfaceFileOwnerAttributeView
- Specified by:
name
in interfacePosixFileAttributeView
- Overrides:
name
in classAbstractSftpFileAttributeView
-
readAttributes
public PosixFileAttributes readAttributes() throws IOException
- 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
public void setPermissions(Set<PosixFilePermission> perms) throws IOException
- Specified by:
setPermissions
in interfacePosixFileAttributeView
- Throws:
IOException
-
setGroup
public void setGroup(GroupPrincipal group) throws IOException
- Specified by:
setGroup
in interfacePosixFileAttributeView
- Throws:
IOException
-
getOwner
public UserPrincipal getOwner() throws IOException
- Specified by:
getOwner
in interfaceFileOwnerAttributeView
- Throws:
IOException
-
setOwner
public void setOwner(UserPrincipal owner) throws IOException
- Specified by:
setOwner
in interfaceFileOwnerAttributeView
- Throws:
IOException
-
-