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
-
Field Summary
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateDirectories(org.apache.sshd.sftp.client.SftpClient sftp, String remotePath, PrintStream stdout, boolean verbose) protected voidexecuteCommand(String args, boolean upload, PrintStream stdout) protected voidtransferFile(org.apache.sshd.sftp.client.SftpClient sftp, Path localPath, String remotePath, boolean upload, PrintStream stdout, boolean verbose) protected voidtransferLocalDir(org.apache.sshd.sftp.client.SftpClient sftp, Path localPath, String remotePath, PrintStream stdout, boolean verbose) protected voidtransferRemoteDir(org.apache.sshd.sftp.client.SftpClient sftp, Path localPath, String remotePath, org.apache.sshd.sftp.client.SftpClient.Attributes attrs, PrintStream stdout, boolean verbose) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.sshd.common.NamedResource
getNameMethods inherited from interface SftpCommandExecutor
executeCommand
-
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
- Throws:
IOException
-