com.mindbright.ssh2
public class SSH2SFTPFileBrowser extends com.isnetworks.ssh.AbstractFileBrowser
| Constructor and Description |
|---|
SSH2SFTPFileBrowser(SSH2Connection connection,
com.isnetworks.ssh.FileDisplayControl fileDisplay,
java.lang.String cwd) |
| Modifier and Type | Method and Description |
|---|---|
void |
changeDirectory(java.lang.String newDir)
Change current working directory.
|
void |
delete(com.isnetworks.ssh.FileListItem[] files)
Delete a set of files.
|
void |
disconnect()
Disconnect from the server.
|
void |
fileDoubleClicked(com.isnetworks.ssh.FileListItem file)
Handles doubleclick events on a file.
|
SSH2SFTPClient |
getSFTPClient() |
void |
initialize()
Initialize the object.
|
void |
makeDirectory(java.lang.String directoryName)
Create a directory on the server.
|
void |
refresh()
Refres the listing of the current directory.
|
void |
rename(com.isnetworks.ssh.FileListItem file,
java.lang.String newFileName)
Renames a file.
|
public SSH2SFTPFileBrowser(SSH2Connection connection, com.isnetworks.ssh.FileDisplayControl fileDisplay, java.lang.String cwd)
connection - Connection to use.fileDisplay - A display object which refers to the actual window.cwd - Directory to start in.public SSH2SFTPClient getSFTPClient()
public void fileDoubleClicked(com.isnetworks.ssh.FileListItem file)
throws java.lang.Exception
file - File doubleclicked.java.lang.Exceptionpublic void refresh()
throws java.lang.Exception
java.lang.Exceptionpublic void delete(com.isnetworks.ssh.FileListItem[] files)
throws java.lang.Exception
files - Array of files to delete.java.lang.Exceptionpublic void initialize()
throws java.lang.Exception
java.lang.Exceptionpublic void makeDirectory(java.lang.String directoryName)
throws java.lang.Exception
directoryName - Name of directory to create.java.lang.Exceptionpublic void rename(com.isnetworks.ssh.FileListItem file,
java.lang.String newFileName)
throws java.lang.Exception
file - File to rename.newFileName - New name.java.lang.Exceptionpublic void changeDirectory(java.lang.String newDir)
throws java.lang.Exception
newDir - Directory to change into.java.lang.Exceptionpublic void disconnect()
disconnect in interface com.isnetworks.ssh.FileBrowserdisconnect in class com.isnetworks.ssh.AbstractFileBrowser