Package org.apache.sshd.cli.client
Class SftpCommandMain.RmCommandExecutor
- java.lang.Object
-
- org.apache.sshd.cli.client.SftpCommandMain.RmCommandExecutor
-
- All Implemented Interfaces:
SftpCommandExecutor,NamedResource
- Enclosing class:
- SftpCommandMain
private class SftpCommandMain.RmCommandExecutor extends java.lang.Object implements SftpCommandExecutor
-
-
Field Summary
-
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR
-
-
Constructor Summary
Constructors Constructor Description RmCommandExecutor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexecuteCommand(java.lang.String args, java.io.BufferedReader stdin, java.io.PrintStream stdout, java.io.PrintStream stderr)java.lang.StringgetName()private voidremoveRecursive(SftpClient sftp, java.lang.String path, SftpClient.Attributes attrs, java.io.PrintStream stdout, boolean verbose)
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceNamedResource- Returns:
- The resource name
-
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:
executeCommandin interfaceSftpCommandExecutor- Throws:
java.lang.Exception
-
removeRecursive
private void removeRecursive(SftpClient sftp, java.lang.String path, SftpClient.Attributes attrs, java.io.PrintStream stdout, boolean verbose) throws java.io.IOException
- Throws:
java.io.IOException
-
-