Class DownloadFileTask

java.lang.Object
com.sshtools.common.ssh.AbstractRequestFuture
com.sshtools.common.ssh.ConnectionAwareTask
All Implemented Interfaces:
com.sshtools.common.ssh.RequestFuture, Runnable

public class DownloadFileTask extends AbstractFileTask
An SFTP Task that downloads complete files. You cannot directly create a DownloadFileTask, instead use DownloadFileTask.DownloadFileTaskBuilder.
 client.addTask(DownloadFileTaskBuilder.create().
                withLocalFile(new File("local.txt")).
      withRemotePath("/path/to/remote.txt").
      build());