public class ScpTransferProgressEvent extends ScpEvent
Modifier and Type | Field and Description |
---|---|
static int |
DOWNLOAD
Indicates DOWNLOAD process
|
static int |
UPLOAD
Indicates UPLOAD process
|
Constructor and Description |
---|
ScpTransferProgressEvent(Scp source,
java.lang.String filename,
long transferred,
long size,
int mode)
Creates a new event instance.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(ScpEventListener listener)
Accepts listener for backwards dispatching.
|
java.lang.String |
getFilename()
Returns file name.
|
int |
getMode()
Returns transfer mode.
|
long |
getSize()
Returns file size in bytes.
|
long |
getTransferredBytes()
Returns transferred bytes count.
|
java.lang.String |
toString() |
public static final int UPLOAD
public static final int DOWNLOAD
public ScpTransferProgressEvent(Scp source, java.lang.String filename, long transferred, long size, int mode)
source
- sourcefilename
- filenametransferred
- transferred bytes countsize
- total size in bytesmode
- transfer modepublic java.lang.String getFilename()
public long getTransferredBytes()
public long getSize()
public int getMode()
public void accept(ScpEventListener listener)
ScpEvent
accept
in class ScpEvent
listener
- event listenerScpEvent.accept(ScpEventListener)
Copyright © JSCAPE LLC. 1999-2021. All Rights Reserved