|
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.inet.ftp.FtpEvent
com.jscape.inet.ftp.FtpDownloadEvent
public class FtpDownloadEvent
Fired when file is downloaded from FTP server.
Constructor Summary | |
---|---|
FtpDownloadEvent(java.lang.Object source,
java.lang.String filename,
java.lang.String path,
java.lang.String localPath,
long size,
long time)
Creates FtpDownloadEvent. |
Method Summary | |
---|---|
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. |
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 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 millisecondsMethod Detail |
---|
public 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
accept
in class FtpEvent
public 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 |