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:
java.nio.file.attribute.AttributeView,java.nio.file.attribute.FileAttributeView
- Direct Known Subclasses:
SftpAclFileAttributeView,SftpPosixFileAttributeView
public abstract class AbstractSftpFileAttributeView extends AbstractLoggingBean implements java.nio.file.attribute.FileAttributeView
-
-
Field Summary
Fields Modifier and Type Field Description protected java.nio.file.LinkOption[]optionsprotected java.nio.file.Pathpathprotected SftpFileSystemProviderprovider-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractSftpFileAttributeView(SftpFileSystemProvider provider, java.nio.file.Path path, java.nio.file.LinkOption... options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.file.PathgetPath()java.lang.Stringname()SftpFileSystemProviderprovider()protected SftpClient.AttributesreadRemoteAttributes()protected voidwriteRemoteAttributes(SftpClient.Attributes attrs)
-
-
-
Field Detail
-
provider
protected final SftpFileSystemProvider provider
-
path
protected final java.nio.file.Path path
-
options
protected final java.nio.file.LinkOption[] options
-
-
Constructor Detail
-
AbstractSftpFileAttributeView
protected AbstractSftpFileAttributeView(SftpFileSystemProvider provider, java.nio.file.Path path, java.nio.file.LinkOption... options)
-
-
Method Detail
-
name
public java.lang.String name()
- Specified by:
namein interfacejava.nio.file.attribute.AttributeView
-
provider
public final SftpFileSystemProvider provider()
- Returns:
- The underlying
SftpFileSystemProviderused to provide the view functionality
-
getPath
public final java.nio.file.Path getPath()
- Returns:
- The referenced view
Path
-
readRemoteAttributes
protected SftpClient.Attributes readRemoteAttributes() throws java.io.IOException
- Throws:
java.io.IOException
-
writeRemoteAttributes
protected void writeRemoteAttributes(SftpClient.Attributes attrs) throws java.io.IOException
- Throws:
java.io.IOException
-
-