public interface FileTransferProgress
Interface for monitoring the state of a file transfer
It should be noted that the total bytes to transfer passed to the started method is an indication of file length and may not be exact for some types of file transfer, for example ASCII text mode transfers may add or remove newline characters from the stream and therefore the total bytes transfered may not equal the number expected.
Modifier and Type | Method and Description |
---|---|
void |
completed()
The transfer has completed.
|
boolean |
isCancelled()
The transfer is cancelled.
|
void |
progressed(long bytesSoFar)
The transfer has progressed
|
void |
started(long bytesTotal,
String remoteFile)
The transfer has started
|
void started(long bytesTotal, String remoteFile)
bytesTotal
- remoteFile
- boolean isCancelled()
void progressed(long bytesSoFar)
bytesSoFar
- void completed()
Copyright © 2024. All rights reserved.