Package org.apache.sshd.cli.client
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 void
createDirectories
(org.apache.sshd.sftp.client.SftpClient sftp, String remotePath, PrintStream stdout, boolean verbose) protected void
executeCommand
(String args, boolean upload, PrintStream stdout) protected void
transferFile
(org.apache.sshd.sftp.client.SftpClient sftp, Path localPath, String remotePath, boolean upload, PrintStream stdout, boolean verbose) protected void
transferLocalDir
(org.apache.sshd.sftp.client.SftpClient sftp, Path localPath, String remotePath, PrintStream stdout, boolean verbose) 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) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.sshd.common.NamedResource
getName
Methods inherited from interface org.apache.sshd.cli.client.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
-