|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.isnetworks.ssh.AbstractFileBrowser
com.mindbright.ssh2.SSH2SFTPFileBrowser
public class SSH2SFTPFileBrowser
Implements a file browser which browses files through an SFTP connection.
Field Summary |
---|
Fields inherited from class com.isnetworks.ssh.AbstractFileBrowser |
---|
dirs, files, mFileDisplay |
Constructor Summary | |
---|---|
SSH2SFTPFileBrowser(SSH2Connection connection,
com.isnetworks.ssh.FileDisplayControl fileDisplay,
java.lang.String cwd)
|
Method Summary | |
---|---|
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. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |