|
Secure iNet 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
public class FileTransferDownloadEvent
Fired when file is downloaded from server.
Constructor Summary | |
---|---|
FileTransferDownloadEvent(java.lang.Object source,
java.lang.String filename,
java.lang.String path,
java.lang.String localPath,
long size,
long time,
boolean interrupted)
Creates a new event instance. |
Method Summary | |
---|---|
void |
accept(FileTransferListener listener)
Accepts event via FileTransferListener. |
java.lang.String |
getFilename()
Gets name of file downloaded. |
java.lang.String |
getLocalPath()
Returns downloaded file local path. |
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, java.lang.String localPath, long size, long time, boolean interrupted)
source
- the source of the eventfilename
- the file downloadedpath
- the remote directory path file was downloaded fromlocalPath
- the local file pathsize
- the size of the file downloaded in bytestime
- the time to download in millisecondsinterrupted
- interrupted flagMethod Detail |
---|
public java.lang.String getFilename()
public java.lang.String getPath()
public java.lang.String getLocalPath()
public long getSize()
public long getTime()
public boolean isInterrupted()
true
if the transfer was interrupted.public void accept(FileTransferListener listener)
accept
in class FileTransferEvent
listener
- the listener which receives eventpublic java.lang.String toString()
toString
in class java.util.EventObject
|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |