public class FtpDownloadEvent extends FtpEvent
Constructor and Description |
---|
FtpDownloadEvent(java.lang.Object source,
java.lang.String filename,
java.lang.String path,
java.lang.String localPath,
long size,
long time)
Creates FtpDownloadEvent.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(FtpListener listener)
Event is accepted by listener
|
java.lang.String |
getFilename()
Gets name of file downloaded.
|
java.lang.String |
getLocalPath()
Returns local file path.
|
java.lang.String |
getPath()
Gets remote directory path that the file was downloaded from.
|
long |
getSize()
Gets total bytes transmitted
|
long |
getTime()
Gets total time to transfer file measured in milliseconds
|
java.lang.String |
toString()
Gets String equivalent of this event.
|
public FtpDownloadEvent(java.lang.Object source, java.lang.String filename, java.lang.String path, java.lang.String localPath, long size, long time)
source
- the source of the eventfilename
- the file downloadedpath
- the remote directory path that file was downloaded fromlocalPath
- the the local file pathsize
- the size of the file downloadedtime
- the amount of time to download file measured in millisecondspublic java.lang.String getFilename()
public java.lang.String getPath()
public java.lang.String getLocalPath()
public long getSize()
public long getTime()
public void accept(FtpListener listener)
FtpEvent
public java.lang.String toString()
toString
in class java.util.EventObject
Copyright © JSCAPE LLC. 1999-2021. All Rights Reserved