|
Secure FTP Factory | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.EventObject
com.jscape.filetransfer.FileTransferEvent
com.jscape.filetransfer.FileTransferProgressEvent
Fired on significant progress in upload and download operations in
FileTransfer derived classes.
| Field Summary | |
static int |
DOWNLOAD
Indicates DOWNLOAD process. |
static int |
UPLOAD
Indicates UPLOAD process. |
| Constructor Summary | |
FileTransferProgressEvent(java.lang.Object source,
java.lang.String filename,
java.lang.String path,
int mode,
long bytes,
long totalBytes)
Constructs new FileTransferProgressEvent. |
|
| Method Summary | |
void |
accept(FileTransferListener listener)
Accepts event via FileTransferListener. |
java.lang.String |
getAbsolutePath()
Gets absolute path of file transferred. |
long |
getBytes()
Gets the number of bytes transferred so far. |
java.lang.String |
getFilename()
Gets name of file transferred. |
int |
getMode()
Gets mode of transfer, upload or download. |
long |
getTotalBytes()
Gets the number of bytes for the file being transferred. |
| Methods inherited from class java.util.EventObject |
getSource, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int UPLOAD
public static final int DOWNLOAD
| Constructor Detail |
public FileTransferProgressEvent(java.lang.Object source,
java.lang.String filename,
java.lang.String path,
int mode,
long bytes,
long totalBytes)
FileTransferProgressEvent.
source - the source of this eventfilename - the name of file being transferredpath - the file path of file transferredmode - the direction of transferbytes - the number of bytes transferredtotalBytes - the number of bytes for the file being transferred| Method Detail |
public int getMode()
UPLOAD,
DOWNLOADpublic java.lang.String getFilename()
public java.lang.String getAbsolutePath()
public long getBytes()
public long getTotalBytes()
public void accept(FileTransferListener listener)
accept in class FileTransferEventlistener - the listener which receives event
|
Secure FTP Factory | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||