Class DownloadOutputStreamTask

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

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