public class SftpProgressEvent extends SftpEvent
Modifier and Type | Field and Description |
---|---|
static int |
DOWNLOAD
Indicates DOWNLOAD process
|
static int |
UPLOAD
Indicates UPLOAD process
|
Constructor and Description |
---|
SftpProgressEvent(Sftp source,
java.lang.String fileName,
java.lang.String path,
java.lang.String localFilePath,
int mode,
long totalBytes,
long transferredBytes) |
Modifier and Type | Method and Description |
---|---|
void |
accept(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 |
getTotalBytes()
Gets the total number of bytes for the file being transferred.
|
public static final int UPLOAD
public static final int DOWNLOAD
public SftpProgressEvent(Sftp source, java.lang.String fileName, java.lang.String path, java.lang.String localFilePath, int mode, long totalBytes, long transferredBytes)
public java.lang.String getFilename()
public java.lang.String getPath()
public java.lang.String getLocalFilePath()
public int getMode()
public long getBytes()
public long getTotalBytes()
public void accept(SftpListener listener)
Copyright © JSCAPE LLC. 1999-2021. All Rights Reserved