Package org.apache.sshd.sftp.client.impl
Class AbstractSftpFileAttributeView
- java.lang.Object
-
- org.apache.sshd.common.util.logging.AbstractLoggingBean
-
- org.apache.sshd.sftp.client.impl.AbstractSftpFileAttributeView
-
- All Implemented Interfaces:
AttributeView,FileAttributeView
- Direct Known Subclasses:
SftpAclFileAttributeView,SftpPosixFileAttributeView
public abstract class AbstractSftpFileAttributeView extends org.apache.sshd.common.util.logging.AbstractLoggingBean implements FileAttributeView
- Author:
- Apache MINA SSHD Project
-
-
Field Summary
Fields Modifier and Type Field Description protected LinkOption[]optionsprotected Pathpathprotected SftpFileSystemProviderprovider
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractSftpFileAttributeView(SftpFileSystemProvider provider, Path path, LinkOption... options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PathgetPath()Stringname()SftpFileSystemProviderprovider()protected SftpClient.AttributesreadRemoteAttributes()protected voidwriteRemoteAttributes(SftpClient.Attributes attrs)
-
-
-
Field Detail
-
provider
protected final SftpFileSystemProvider provider
-
path
protected final Path path
-
options
protected final LinkOption[] options
-
-
Constructor Detail
-
AbstractSftpFileAttributeView
protected AbstractSftpFileAttributeView(SftpFileSystemProvider provider, Path path, LinkOption... options)
-
-
Method Detail
-
name
public String name()
- Specified by:
namein interfaceAttributeView
-
provider
public final SftpFileSystemProvider provider()
- Returns:
- The underlying
SftpFileSystemProviderused to provide the view functionality
-
readRemoteAttributes
protected SftpClient.Attributes readRemoteAttributes() throws IOException
- Throws:
IOException
-
writeRemoteAttributes
protected void writeRemoteAttributes(SftpClient.Attributes attrs) throws IOException
- Throws:
IOException
-
-