|
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.FileTransferDownloadEvent
Fired when file is downloaded from server.
| Constructor Summary | |
FileTransferDownloadEvent(java.lang.Object source,
java.lang.String filename,
java.lang.String path,
long size,
long time)
Creates FileTransferDownloadEvent. |
|
FileTransferDownloadEvent(java.lang.Object source,
java.lang.String filename,
java.lang.String path,
long size,
long time,
boolean interrupted)
Creates FileTransferDownloadEvent. |
|
| Method Summary | |
void |
accept(FileTransferListener listener)
Accepts event via FileTransferListener. |
java.lang.String |
getFilename()
Gets name of file downloaded. |
java.lang.String |
getPath()
Gets remote directory path that file was downloaded from. |
long |
getSize()
Gets total bytes transmitted. |
long |
getTime()
Gets total time to transfer file measured in milliseconds. |
boolean |
isInterrupted()
Indicates if the download operations was interrupted by the user or network connection. |
java.lang.String |
toString()
Gets String equivalent of this event. |
| Methods inherited from class java.util.EventObject |
getSource |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public FileTransferDownloadEvent(java.lang.Object source,
java.lang.String filename,
java.lang.String path,
long size,
long time)
FileTransferDownloadEvent.
source - the source of the eventfilename - the file downloadedpath - the remote directory path file was downloaded fromsize - the size of the file downloaded in bytestime - the time to download in milliseconds
public FileTransferDownloadEvent(java.lang.Object source,
java.lang.String filename,
java.lang.String path,
long size,
long time,
boolean interrupted)
FileTransferDownloadEvent.
source - the source of the eventfilename - the file downloadedpath - the remote directory path file was downloaded fromsize - the size of the file downloaded in bytestime - the time to download in milliseconds| Method Detail |
public java.lang.String getFilename()
public boolean isInterrupted()
true if the transfer was interrupted.public java.lang.String getPath()
public long getSize()
public long getTime()
public void accept(FileTransferListener listener)
accept in class FileTransferEventlistener - the listener which receives eventpublic java.lang.String toString()
|
Secure FTP Factory | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||