|
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.FtpProgressEvent
public class 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 . |
|
FtpProgressEvent(java.lang.Object source,
java.lang.String filename,
java.lang.String path,
int mode,
long bytes,
long readBytes,
long totalBytes)
Constructs new FtpProgressEvent . |
|
FtpProgressEvent(java.lang.Object source,
java.lang.String filename,
java.lang.String path,
java.lang.String localFilePath,
int mode,
long bytes,
long readBytes,
long totalBytes)
Constructor. |
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. |
java.lang.String |
getLocalFilePath()
|
int |
getMode()
Gets mode of transfer, upload or download. |
long |
getReadBytes()
Get the number of bytes read at one time. |
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 transferredpublic FtpProgressEvent(java.lang.Object source, java.lang.String filename, java.lang.String path, int mode, long bytes, long readBytes, 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 transferredpublic FtpProgressEvent(java.lang.Object source, java.lang.String filename, java.lang.String path, java.lang.String localFilePath, int mode, long bytes, long readBytes, long totalBytes)
source
- filename
- path
- localFilePath
- mode
- bytes
- readBytes
- totalBytes
- Method Detail |
---|
public java.lang.String getLocalFilePath()
public long getReadBytes()
public int getMode()
UPLOAD
,
DOWNLOAD
public java.lang.String getFilename()
public java.lang.String getAbsolutePath()
public long getBytes()
public long getTotalBytes()
public void accept(FtpListener listener)
FtpEvent
accept
in class FtpEvent
|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |