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.Exception
public void refresh() throws java.lang.Exception
java.lang.Exception
public void delete(com.isnetworks.ssh.FileListItem[] files) throws java.lang.Exception
files
- Array of files to delete.java.lang.Exception
public void initialize() throws java.lang.Exception
java.lang.Exception
public void makeDirectory(java.lang.String directoryName) throws java.lang.Exception
directoryName
- Name of directory to create.java.lang.Exception
public void rename(com.isnetworks.ssh.FileListItem file, java.lang.String newFileName) throws java.lang.Exception
file
- File to rename.newFileName
- New name.java.lang.Exception
public void changeDirectory(java.lang.String newDir) throws java.lang.Exception
newDir
- Directory to change into.java.lang.Exception
public void disconnect()
disconnect
in interface com.isnetworks.ssh.FileBrowser
disconnect
in class com.isnetworks.ssh.AbstractFileBrowser