Package org.apache.sshd.cli.client
Class SftpCommandMain.RmCommandExecutor
- java.lang.Object
-
- org.apache.sshd.cli.client.SftpCommandMain.RmCommandExecutor
-
- All Implemented Interfaces:
SftpCommandExecutor
,org.apache.sshd.common.NamedResource
- Enclosing class:
- SftpCommandMain
private class SftpCommandMain.RmCommandExecutor extends java.lang.Object implements SftpCommandExecutor
-
-
Constructor Summary
Constructors Constructor Description RmCommandExecutor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
executeCommand(java.lang.String args, java.io.BufferedReader stdin, java.io.PrintStream stdout, java.io.PrintStream stderr)
java.lang.String
getName()
private void
removeRecursive(org.apache.sshd.sftp.client.SftpClient sftp, java.lang.String path, org.apache.sshd.sftp.client.SftpClient.Attributes attrs, java.io.PrintStream stdout, boolean verbose)
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceorg.apache.sshd.common.NamedResource
-
executeCommand
public boolean executeCommand(java.lang.String args, java.io.BufferedReader stdin, java.io.PrintStream stdout, java.io.PrintStream stderr) throws java.lang.Exception
- Specified by:
executeCommand
in interfaceSftpCommandExecutor
- Throws:
java.lang.Exception
-
removeRecursive
private void removeRecursive(org.apache.sshd.sftp.client.SftpClient sftp, java.lang.String path, org.apache.sshd.sftp.client.SftpClient.Attributes attrs, java.io.PrintStream stdout, boolean verbose) throws java.io.IOException
- Throws:
java.io.IOException
-
-