public interface SftpClientCreator
| Modifier and Type | Method and Description |
|---|---|
default SftpClient |
createSftpClient()
Create an SFTP client from this session.
|
default SftpClient |
createSftpClient(int version)
Creates an SFTP client using the specified version
|
SftpClient |
createSftpClient(SftpVersionSelector selector)
Creates an SFTP client while allowing the selection of a specific version
|
FileSystem |
createSftpFileSystem() |
FileSystem |
createSftpFileSystem(int version) |
FileSystem |
createSftpFileSystem(int readBufferSize,
int writeBufferSize) |
FileSystem |
createSftpFileSystem(int version,
int readBufferSize,
int writeBufferSize) |
FileSystem |
createSftpFileSystem(SftpVersionSelector selector) |
FileSystem |
createSftpFileSystem(SftpVersionSelector selector,
int readBufferSize,
int writeBufferSize) |
default SftpClient createSftpClient() throws IOException
SftpClientIOException - if failed to create the clientdefault SftpClient createSftpClient(int version) throws IOException
version - The version to use - Note: if the specified
version is not supported by the server then an exception
will occurSftpClientIOException - If failed to create the client or use the specified versionSftpClient createSftpClient(SftpVersionSelector selector) throws IOException
selector - The SftpVersionSelector to use - Note:
if the server does not support versions re-negotiation then the
selector will be presented with only one "choice" - the
current versionSftpClientIOException - If failed to create the client or re-negotiateFileSystem createSftpFileSystem() throws IOException
IOExceptionFileSystem createSftpFileSystem(int version) throws IOException
IOExceptionFileSystem createSftpFileSystem(SftpVersionSelector selector) throws IOException
IOExceptionFileSystem createSftpFileSystem(int readBufferSize, int writeBufferSize) throws IOException
IOExceptionFileSystem createSftpFileSystem(int version, int readBufferSize, int writeBufferSize) throws IOException
IOExceptionFileSystem createSftpFileSystem(SftpVersionSelector selector, int readBufferSize, int writeBufferSize) throws IOException
IOExceptionCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.