Package org.apache.sshd.cli.client
Class SftpCommandMain.CdCommandExecutor
- java.lang.Object
-
- org.apache.sshd.cli.client.SftpCommandMain.PwdCommandExecutor
-
- org.apache.sshd.cli.client.SftpCommandMain.CdCommandExecutor
-
- All Implemented Interfaces:
SftpCommandExecutor,NamedResource
- Enclosing class:
- SftpCommandMain
private class SftpCommandMain.CdCommandExecutor extends SftpCommandMain.PwdCommandExecutor
-
-
Field Summary
-
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR
-
-
Constructor Summary
Constructors Constructor Description CdCommandExecutor()
-
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()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceNamedResource- Overrides:
getNamein classSftpCommandMain.PwdCommandExecutor- 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- Overrides:
executeCommandin classSftpCommandMain.PwdCommandExecutor- Throws:
java.lang.Exception
-
-