Package org.apache.sshd.sftp.client.fs
Class SftpFileSystem
java.lang.Object
java.nio.file.FileSystem
org.apache.sshd.common.file.util.BaseFileSystem<SftpPath>
org.apache.sshd.sftp.client.fs.SftpFileSystem
- All Implemented Interfaces:
Closeable,AutoCloseable,ClientSessionHolder,SessionContextHolder,SessionHolder<ClientSession>
public class SftpFileSystem
extends org.apache.sshd.common.file.util.BaseFileSystem<SftpPath>
implements SessionHolder<ClientSession>, ClientSessionHolder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Field Summary
FieldsFields inherited from class org.apache.sshd.common.file.util.BaseFileSystem
log -
Constructor Summary
ConstructorsConstructorDescriptionSftpFileSystem(SftpFileSystemProvider provider, String id, ClientSession session, SftpClientFactory factory, SftpVersionSelector selector, SftpErrorDataHandler errorDataHandler) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected SftpPathfinal StringgetId()intfinal SftpVersionSelectorfinal intintbooleanisOpen()provider()voidsetReadBufferSize(int size) voidsetWriteBufferSize(int size) toString()Methods inherited from class org.apache.sshd.common.file.util.BaseFileSystem
appendDedupSep, create, create, getPath, getPathMatcher, getRootDirectories, getSeparator, globToRegex, isReadOnly, newWatchServiceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.sshd.common.session.SessionHolder
getSessionContext
-
Field Details
-
UNIVERSAL_SUPPORTED_VIEWS
-
-
Constructor Details
-
SftpFileSystem
public SftpFileSystem(SftpFileSystemProvider provider, String id, ClientSession session, SftpClientFactory factory, SftpVersionSelector selector, SftpErrorDataHandler errorDataHandler) throws IOException - Throws:
IOException
-
-
Method Details
-
getSftpVersionSelector
-
getSftpErrorDataHandler
-
getId
-
getVersion
public final int getVersion() -
provider
- Overrides:
providerin classorg.apache.sshd.common.file.util.BaseFileSystem<SftpPath>
-
getFileStores
- Overrides:
getFileStoresin classorg.apache.sshd.common.file.util.BaseFileSystem<SftpPath>
-
getReadBufferSize
public int getReadBufferSize() -
setReadBufferSize
public void setReadBufferSize(int size) -
getWriteBufferSize
public int getWriteBufferSize() -
setWriteBufferSize
public void setWriteBufferSize(int size) -
create
- Specified by:
createin classorg.apache.sshd.common.file.util.BaseFileSystem<SftpPath>
-
getClientSession
- Specified by:
getClientSessionin interfaceClientSessionHolder
-
getSession
- Specified by:
getSessionin interfaceSessionHolder<ClientSession>
-
getClient
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classFileSystem- Throws:
IOException
-
isOpen
public boolean isOpen()- Specified by:
isOpenin classFileSystem
-
supportedFileAttributeViews
- Specified by:
supportedFileAttributeViewsin classFileSystem
-
getUserPrincipalLookupService
- Specified by:
getUserPrincipalLookupServicein classFileSystem
-
getDefaultDir
- Overrides:
getDefaultDirin classorg.apache.sshd.common.file.util.BaseFileSystem<SftpPath>
-
toString
-