|
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.filetransfer.FileTransferEvent
com.jscape.filetransfer.FileTransferProgressEvent
public class FileTransferProgressEvent
Fired on significant progress in upload and download operations in
FileTransfer
derived classes.
Field Summary | |
---|---|
static int |
DOWNLOAD
Indicates DOWNLOAD process. |
static int |
UPLOAD
Indicates UPLOAD process. |
Constructor Summary | |
---|---|
FileTransferProgressEvent(java.lang.Object source,
java.lang.String filename,
java.lang.String path,
int mode,
long bytes,
long totalBytes)
Constructs new FileTransferProgressEvent . |
|
FileTransferProgressEvent(java.lang.Object source,
java.lang.String filename,
java.lang.String path,
int mode,
long bytes,
long readBytes,
long totalBytes)
|
Method Summary | |
---|---|
void |
accept(FileTransferListener listener)
Accepts event via FileTransferListener. |
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 |
getReadBytes()
|
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 FileTransferProgressEvent(java.lang.Object source, java.lang.String filename, java.lang.String path, int mode, long bytes, long totalBytes)
FileTransferProgressEvent
.
source
- the source of this eventfilename
- the name of file being transferredpath
- the file path of file transferredmode
- the direction of transferbytes
- the number of bytes transferredtotalBytes
- the number of bytes for the file being transferredpublic FileTransferProgressEvent(java.lang.Object source, java.lang.String filename, java.lang.String path, int mode, long bytes, long readBytes, long totalBytes)
source
- sourcefilename
- filenamepath
- pathmode
- modebytes
- bytesreadBytes
- readBytestotalBytes
- totalBytesMethod Detail |
---|
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(FileTransferListener listener)
accept
in class FileTransferEvent
listener
- the listener which receives event
|
Secure FTP Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |