Class UploadFileContentTask

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

public class UploadFileContentTask extends AbstractFileTask
An SFTP Task that uploads string content to a remote file. You cannot directly create a UploadFileContentTask, instead use UploadInputStreamTask.UploadInputStreamTaskBuilder.
 client.addTask(UploadFileContentTask.create().
                withContent("Hello World!").
      withRemotePath("/remote/on/remote/remote.txt").
      build());