|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jscape.inet.sftp.events.SftpEvent
com.jscape.inet.sftp.events.SftpProgressEvent
public final class SftpProgressEvent
This event is fired on significant progress in upload and download operations in Sftp class.
Field Summary | |
---|---|
static int |
DOWNLOAD
Indicates DOWNLOAD process |
static int |
UPLOAD
Indicates UPLOAD process |
Constructor Summary | |
---|---|
SftpProgressEvent(Sftp source,
java.lang.String fileName,
int mode,
long transferredBytes,
long totalBytes)
Creates a new event instance. |
|
SftpProgressEvent(Sftp source,
java.lang.String fileName,
int mode,
long transferredBytes,
long readBytes,
long totalBytes)
Creates a new event instance. |
|
SftpProgressEvent(Sftp source,
java.lang.String fileName,
java.lang.String path,
int mode,
long transferredBytes,
long readBytes,
long totalBytes)
|
|
SftpProgressEvent(Sftp source,
java.lang.String fileName,
java.lang.String path,
java.lang.String localFilePath,
int mode,
long transferredBytes,
long readBytes,
long totalBytes)
Constructor. |
Method Summary | |
---|---|
void |
acceptListener(SftpListener listener)
The "backwards dispatching" support. |
long |
getBytes()
Gets the number of bytes transferred so far. |
java.lang.String |
getFilename()
Gets the name of file transferred. |
java.lang.String |
getLocalFilePath()
Get local file path, |
int |
getMode()
Gets mode of transfer, upload or download. |
java.lang.String |
getPath()
Get path. |
long |
getReadBytes()
Get read bytes |
long |
getTotalBytes()
Gets the total number of bytes for the file being transferred. |
Methods inherited from class com.jscape.inet.sftp.events.SftpEvent |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int UPLOAD
public static final int DOWNLOAD
Constructor Detail |
---|
public SftpProgressEvent(Sftp source, java.lang.String fileName, int mode, long transferredBytes, long totalBytes)
source
- the event sourcefileName
- the file namemode
- transfer mode - UPLOAD
or DOWNLOAD
transferredBytes
- number of transferred bytestotalBytes
- total bytes to transferpublic SftpProgressEvent(Sftp source, java.lang.String fileName, int mode, long transferredBytes, long readBytes, long totalBytes)
source
- the event sourcefileName
- the file namemode
- transfer mode - UPLOAD
or DOWNLOAD
transferredBytes
- number of transferred bytesreadBytes
- number of bytes transferred at one timetotalBytes
- total bytes to transferpublic SftpProgressEvent(Sftp source, java.lang.String fileName, java.lang.String path, int mode, long transferredBytes, long readBytes, long totalBytes)
public SftpProgressEvent(Sftp source, java.lang.String fileName, java.lang.String path, java.lang.String localFilePath, int mode, long transferredBytes, long readBytes, long totalBytes)
source
- fileName
- path
- localFilePath
- mode
- transferredBytes
- readBytes
- totalBytes
- Method Detail |
---|
public java.lang.String getLocalFilePath()
public java.lang.String getPath()
public long getReadBytes()
public java.lang.String getFilename()
public long getBytes()
public long getTotalBytes()
public int getMode()
UPLOAD
,
DOWNLOAD
public void acceptListener(SftpListener listener)
acceptListener
in class SftpEvent
listener
- the event listener
|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |