Uses of Class
com.sshtools.client.sftp.SftpClient.SftpClientBuilder
Packages that use SftpClient.SftpClientBuilder
-
Uses of SftpClient.SftpClientBuilder in com.sshtools.client.sftp
Methods in com.sshtools.client.sftp that return SftpClient.SftpClientBuilderModifier and TypeMethodDescriptionstatic SftpClient.SftpClientBuilder
SftpClient.SftpClientBuilder.create()
Create a newSftpClient.SftpClientBuilder
.SftpClient.SftpClientBuilder.withAsyncRequests
(int asyncRequests) Set the maximum number of asynchronous requests to use for optimised reads and writes to remote files.SftpClient.SftpClientBuilder.withBlockSize
(int blockSize) Sets the block size used when transferring files, defaults to the optimized setting of 32768.SftpClient.SftpClientBuilder.withBufferSize
(int bufferSize) Set the size of the buffer which is used to read from the local file system.SftpClient.SftpClientBuilder.withClient
(SshClient client) Use an existingSshClient
to create theSftpClient
.SftpClient.SftpClientBuilder.withConnection
(com.sshtools.common.ssh.SshConnection connection) Use an existingSshConnection
to create theSftpClient
.SftpClient.SftpClientBuilder.withCustomRoots
(String... rootPaths) Adds one or more custom file system root paths.SftpClient.SftpClientBuilder.withFileFactory
(com.sshtools.common.files.AbstractFileFactory<?> fileFactory) Use a specificAbstractFileFactory
for this client.SftpClient.SftpClientBuilder.withLocalHome
(File localRoot) Use a specificPath
as the home of the local file system.SftpClient.SftpClientBuilder.withLocalHome
(Path localHome) Use a specificPath
as the home of the local file system.SftpClient.SftpClientBuilder.withLocalHomeSandbox
(boolean localHomeSandbox) Whether or not to sandbox the path provided as the Local Home/code>.SftpClient.SftpClientBuilder.withLocalPath
(String localPath) Start off in a specified local path.SftpClient.SftpClientBuilder.withRemotePath
(String remotePath) Start off in a specified remote path.SftpClient.SftpClientBuilder.withWithoutLocalHomeSandbox()
Set to not sandbox the path provided as the Local Home/code>.