|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindbright.ssh2.SSH2SimpleSFTPShell
public final class SSH2SimpleSFTPShell
This class implements a basic interactive sftp session. It opens a terminal window in which the user may interact with sftp using typed commands.
Nested Class Summary | |
---|---|
static class |
SSH2SimpleSFTPShell.ProgressBar
Class implementing a progress bar which gets printed in a terminal window. |
Constructor Summary | |
---|---|
SSH2SimpleSFTPShell(SSH2Connection connection,
java.lang.String title)
This constructor needs an open connection to the server and a window name. |
Method Summary | |
---|---|
void |
doHelp()
Print help text. |
java.lang.String |
expandLocal(java.lang.String name)
If needed, expand the given filename to include full path on the local side. |
java.lang.String |
expandRemote(java.lang.String name)
If needed, expand the given filename to include full path on the remote side. |
java.lang.String |
getNextArg(java.lang.String args)
Extract the next argument from a space-separated list of arguments. |
TerminalWin |
getTerminal()
|
java.lang.String[] |
makeArgv(java.lang.String cmdLine)
Split a command line into arguments. |
void |
run()
The thread running this gets created in the constructor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SSH2SimpleSFTPShell(SSH2Connection connection, java.lang.String title)
connection
- The connection to use.title
- Title of window.Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
public java.lang.String expandRemote(java.lang.String name)
name
- Name to expand
public java.lang.String expandLocal(java.lang.String name)
name
- Name to expand
public java.lang.String getNextArg(java.lang.String args)
args
- List of arguments. This list is modified in the process.
public java.lang.String[] makeArgv(java.lang.String cmdLine)
cmdLine
- Command line to extract arguments from.
public void doHelp()
public TerminalWin getTerminal()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |