|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.isnetworks.ssh.AbstractFileBrowser
com.mindbright.ssh.SSHRemoteFileBrowsingConsole
| Field Summary |
| Fields inherited from class com.isnetworks.ssh.AbstractFileBrowser |
dirs, files, mFileDisplay |
| Constructor Summary | |
SSHRemoteFileBrowsingConsole(com.isnetworks.ssh.FileDisplayControl fileDisplay,
java.lang.String remoteLSCommand,
SSHConsoleRemote remote,
java.lang.String cwd)
|
|
| Method Summary | |
void |
changeDirectory(java.lang.String directoryName)
Does a "cd" on the remote machine |
void |
closed(ExpectOutputStream out,
byte[] buf,
int len)
This function is called when the data stream is closed. |
void |
delete(com.isnetworks.ssh.FileListItem[] fileListItem)
Does a "rmdir" for directories in the array and a "rm" for files Will not delete non-empty directories |
void |
disconnect()
Shut down the connection to the remote machine if it's active |
void |
doCommand(java.lang.StringBuffer command)
|
void |
fileDoubleClicked(com.isnetworks.ssh.FileListItem fileListItem)
User double clicked on a file in the list. |
void |
initialize()
Kick up a new connection to the remote machine, killing the current one if it's still active |
void |
makeDirectory(java.lang.String directoryName)
Executes a "mkdir" on the remote machine |
void |
reached(ExpectOutputStream out,
byte[] buf,
int len)
This function is called whenever the expected string is found in the data stream. |
void |
refresh()
Rather ugly way to get the current directory on the server and a list of files |
void |
rename(com.isnetworks.ssh.FileListItem oldFile,
java.lang.String newName)
Executes a "mv" on the remote machine |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SSHRemoteFileBrowsingConsole(com.isnetworks.ssh.FileDisplayControl fileDisplay,
java.lang.String remoteLSCommand,
SSHConsoleRemote remote,
java.lang.String cwd)
| Method Detail |
public void initialize()
throws java.lang.Exception
initialize in interface com.isnetworks.ssh.FileBrowserjava.lang.Exceptionpublic void disconnect()
disconnect in interface com.isnetworks.ssh.FileBrowser
public void refresh()
throws java.lang.Exception
refresh in interface com.isnetworks.ssh.FileBrowserjava.lang.Exception
public void makeDirectory(java.lang.String directoryName)
throws java.lang.Exception
makeDirectory in interface com.isnetworks.ssh.FileBrowserjava.lang.Exception
public void rename(com.isnetworks.ssh.FileListItem oldFile,
java.lang.String newName)
throws java.lang.Exception
rename in interface com.isnetworks.ssh.FileBrowserjava.lang.Exception
public void changeDirectory(java.lang.String directoryName)
throws java.lang.Exception
changeDirectory in interface com.isnetworks.ssh.FileBrowserjava.lang.Exception
public void delete(com.isnetworks.ssh.FileListItem[] fileListItem)
throws java.lang.Exception
delete in interface com.isnetworks.ssh.FileBrowserjava.lang.Exception
public void doCommand(java.lang.StringBuffer command)
throws java.lang.Exception
java.lang.Exception
public void fileDoubleClicked(com.isnetworks.ssh.FileListItem fileListItem)
throws java.lang.Exception
fileDoubleClicked in interface com.isnetworks.ssh.FileBrowserjava.lang.Exception
public void reached(ExpectOutputStream out,
byte[] buf,
int len)
ExpectOutputStream.Expector
reached in interface ExpectOutputStream.Expectorout - the stream this happened on.buf - a buffer containing all the data which has been
seen on the stream since the last time
reached was called. Note that the
buffer may be bigger than needed.len - how many bytes of data there is in the buffer.
public void closed(ExpectOutputStream out,
byte[] buf,
int len)
ExpectOutputStream.Expector
closed in interface ExpectOutputStream.Expectorout - the stream this happened on.buf - a buffer containing all the data which has been
seen on the stream since the last time
reached was called. Note that the
buffer may be bigger than needed.len - how many bytes of data there is in the buffer.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||