public class FtpProgressEvent extends FtpEvent
Modifier and Type | Field and Description |
---|---|
static int |
DOWNLOAD
Indicates DOWNLOAD process
|
static int |
UPLOAD
Indicates UPLOAD process
|
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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
|
public static final int UPLOAD
public static final int DOWNLOAD
public 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
- public java.lang.String getLocalFilePath()
public long getReadBytes()
public int getMode()
public java.lang.String getFilename()
public java.lang.String getAbsolutePath()
public long getBytes()
public long getTotalBytes()
public void accept(FtpListener listener)
FtpEvent
Copyright © JSCAPE LLC. 1999-2023. All Rights Reserved