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
|
default FileSystem |
createSftpFileSystem() |
default FileSystem |
createSftpFileSystem(int version) |
default FileSystem |
createSftpFileSystem(int readBufferSize,
int writeBufferSize) |
default FileSystem |
createSftpFileSystem(int version,
int readBufferSize,
int writeBufferSize) |
default 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-negotiatedefault FileSystem createSftpFileSystem() throws IOException
IOExceptiondefault FileSystem createSftpFileSystem(int version) throws IOException
IOExceptiondefault FileSystem createSftpFileSystem(SftpVersionSelector selector) throws IOException
IOExceptiondefault FileSystem createSftpFileSystem(int version, int readBufferSize, int writeBufferSize) throws IOException
IOExceptiondefault FileSystem createSftpFileSystem(int readBufferSize, int writeBufferSize) throws IOException
IOExceptionFileSystem createSftpFileSystem(SftpVersionSelector selector, int readBufferSize, int writeBufferSize) throws IOException
IOExceptionCopyright © 2008–2018 The Apache Software Foundation. All rights reserved.