public interface ProgressListener
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCancelled()
This is a means for the UI to inform that process that the user has
cancelled the optioation
If the implementation returns true the operation will abort
|
void |
onComplete(String fileName)
Called on completion
|
void |
onProgress(long bytesRead,
Long totalBytes,
String fileName)
Called occasionally, after a reasonable period has passed so is suitable
for GUI updates
|
void |
onRead(int bytes)
Called on every read operation.
|
void onRead(int bytes)
bytes - - the number of bytes readvoid onProgress(long bytesRead,
Long totalBytes,
String fileName)
bytesRead - totalBytes - - is null if unknownfileName - - name of the file being transferredvoid onComplete(String fileName)
fileName - boolean isCancelled()
Copyright © 2021 McEvoy Software Ltd. All rights reserved.