|
Secure FTP Factory | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jscape.inet.sftp.events.SftpEvent
com.jscape.inet.sftp.events.SftpProgressEvent
This event is fired on significant progress in upload and download operations in Sftp class.
| Field Summary | |
static int |
DOWNLOAD
Indicates DOWNLOAD process |
static int |
UPLOAD
Indicates UPLOAD process |
| Constructor Summary | |
SftpProgressEvent(Sftp source,
java.lang.String fileName,
int mode,
long transferredBytes,
long totalBytes)
Creates a new event instance. |
|
| Method Summary | |
void |
acceptListener(SftpListener listener)
The "backwards dispatching" support. |
long |
getBytes()
Gets the number of bytes transferred so far. |
java.lang.String |
getFilename()
Gets the name of file transferred. |
int |
getMode()
Gets mode of transfer, upload or download. |
long |
getTotalBytes()
Gets the total number of bytes for the file being transferred. |
| Methods inherited from class com.jscape.inet.sftp.events.SftpEvent |
getSource |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int UPLOAD
public static final int DOWNLOAD
| Constructor Detail |
public SftpProgressEvent(Sftp source,
java.lang.String fileName,
int mode,
long transferredBytes,
long totalBytes)
source - the event sourcefileName - the file namemode - transfer mode - UPLOAD or DOWNLOADtransferredBytes - number of transferred bytestotalBytes - total bytes to transfer| Method Detail |
public java.lang.String getFilename()
public long getBytes()
public long getTotalBytes()
public int getMode()
UPLOAD,
DOWNLOADpublic void acceptListener(SftpListener listener)
acceptListener in class SftpEventlistener - the event listener
|
Secure FTP Factory | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||