Interface ProgressReport
-
- All Known Implementing Classes:
LoggingProgressReport,SilentProgressReport
public interface ProgressReportProgress report of a file download operation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcompleted()Triggered to signal completion of the download operation.voiderror(Exception ex)Triggered to signal an error occurred during the download operation.voidinitiate(URI uri, long total)Triggered to signal initiation of a download operation.voidupdate(long bytesRead)Triggered to signal successful retrieval of a chunk of the resource content.
-
-
-
Method Detail
-
initiate
void initiate(URI uri, long total)
Triggered to signal initiation of a download operation.- Parameters:
uri- the URI of the resource being downloadedtotal- the total length of resource content.
-
update
void update(long bytesRead)
Triggered to signal successful retrieval of a chunk of the resource content.- Parameters:
bytesRead- the number of bytes retrieved.
-
completed
void completed()
Triggered to signal completion of the download operation.
-
error
void error(Exception ex)
Triggered to signal an error occurred during the download operation.
-
-