|
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.inet.ftp.FtpEvent
com.jscape.inet.ftp.FtpProgressEvent
Fired on significant progress in upload and download operations in Ftp class.
| Field Summary | |
static int |
DOWNLOAD
Indicates DOWNLOAD process |
static int |
UPLOAD
Indicates UPLOAD process |
| Constructor Summary | |
FtpProgressEvent(java.lang.Object source,
java.lang.String filename,
java.lang.String path,
int mode,
long bytes,
long totalBytes)
Constructs new FtpProgressEvent. |
|
| Method Summary | |
void |
accept(FtpListener listener)
Event is accepted by listener |
java.lang.String |
getAbsolutePath()
Gets absolute path of file transferred. |
long |
getBytes()
Gets the number of bytes transferred so far. |
java.lang.String |
getFilename()
Gets name of file transferred. |
int |
getMode()
Gets mode of transfer, upload or download. |
long |
getTotalBytes()
Gets the number of bytes for the file being transferred |
| Methods inherited from class java.util.EventObject |
getSource, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int UPLOAD
public static final int DOWNLOAD
| Constructor Detail |
public FtpProgressEvent(java.lang.Object source,
java.lang.String filename,
java.lang.String path,
int mode,
long bytes,
long totalBytes)
FtpProgressEvent.
source - the source of this eventfilename - the name of file being transferredmode - the direction of transferbytes - the number of bytes transferredtotalBytes - the number of bytes for the file being transferred| Method Detail |
public int getMode()
UPLOAD,
DOWNLOADpublic java.lang.String getFilename()
public java.lang.String getAbsolutePath()
public long getBytes()
public long getTotalBytes()
public void accept(FtpListener listener)
FtpEvent
accept in class FtpEventlistener -
|
Secure FTP Factory | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||