Class AbstractSftpFileAttributeView
- java.lang.Object
-
- org.apache.sshd.common.util.logging.AbstractLoggingBean
-
- org.apache.sshd.client.subsystem.sftp.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[]
options
protected java.nio.file.Path
path
protected SftpFileSystemProvider
provider
-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSftpFileAttributeView(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.Path
getPath()
java.lang.String
name()
SftpFileSystemProvider
provider()
protected SftpClient.Attributes
readRemoteAttributes()
protected void
writeRemoteAttributes(SftpClient.Attributes attrs)
-
Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
getSimplifiedLogger
-
-
-
-
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:
name
in interfacejava.nio.file.attribute.AttributeView
-
provider
public final SftpFileSystemProvider provider()
- Returns:
- The underlying
SftpFileSystemProvider
used 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
-
-