com.mindbright.ssh2
public final class SSH2SimpleSFTPShell extends java.lang.Object implements java.lang.Runnable
Modifier and Type | Class and Description |
---|---|
static class |
SSH2SimpleSFTPShell.ProgressBar
Class implementing a progress bar which gets printed in a
terminal window.
|
Constructor and Description |
---|
SSH2SimpleSFTPShell(SSH2Connection connection,
java.lang.String title)
This constructor needs an open connection to the server and a
window name.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public SSH2SimpleSFTPShell(SSH2Connection connection, java.lang.String title)
connection
- The connection to use.title
- Title of window.public void run()
run
in interface java.lang.Runnable
public java.lang.String expandRemote(java.lang.String name)
name
- Name to expandpublic java.lang.String expandLocal(java.lang.String name)
name
- Name to expandpublic 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()