public class FileTransferDownloadEvent extends FileTransferEvent
Constructor and Description |
---|
FileTransferDownloadEvent(FileTransfer source,
java.lang.String filename,
java.lang.String path,
java.lang.String localPath,
long size,
long time) |
FileTransferDownloadEvent(FileTransfer source,
java.lang.String filename,
java.lang.String path,
java.lang.String localPath,
long size,
long time,
boolean interrupted)
Creates a new event instance.
|
Modifier and Type | Method and Description |
---|---|
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() |
public FileTransferDownloadEvent(FileTransfer 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 flagpublic FileTransferDownloadEvent(FileTransfer source, java.lang.String filename, java.lang.String path, java.lang.String localPath, long size, long time)
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
Copyright © JSCAPE LLC. 1999-2021. All Rights Reserved