Class SftpCommandMain.TransferCommandExecutor

java.lang.Object
org.apache.sshd.cli.client.SftpCommandMain.TransferCommandExecutor
All Implemented Interfaces:
SftpCommandExecutor, org.apache.sshd.common.NamedResource
Direct Known Subclasses:
SftpCommandMain.GetCommandExecutor, SftpCommandMain.PutCommandExecutor
Enclosing class:
SftpCommandMain

private abstract class SftpCommandMain.TransferCommandExecutor extends Object implements SftpCommandExecutor
  • Constructor Details

    • TransferCommandExecutor

      protected TransferCommandExecutor()
  • Method Details

    • createDirectories

      protected void createDirectories(org.apache.sshd.sftp.client.SftpClient sftp, String remotePath, PrintStream stdout, boolean verbose) throws IOException
      Throws:
      IOException
    • transferFile

      protected void transferFile(org.apache.sshd.sftp.client.SftpClient sftp, Path localPath, String remotePath, boolean upload, PrintStream stdout, boolean verbose) throws IOException
      Throws:
      IOException
    • transferRemoteDir

      protected void transferRemoteDir(org.apache.sshd.sftp.client.SftpClient sftp, Path localPath, String remotePath, org.apache.sshd.sftp.client.SftpClient.Attributes attrs, PrintStream stdout, boolean verbose) throws IOException
      Throws:
      IOException
    • transferLocalDir

      protected void transferLocalDir(org.apache.sshd.sftp.client.SftpClient sftp, Path localPath, String remotePath, PrintStream stdout, boolean verbose) throws IOException
      Throws:
      IOException
    • executeCommand

      protected void executeCommand(String args, boolean upload, PrintStream stdout) throws IOException
      Throws:
      IOException