Interface ProgressReport
- All Known Implementing Classes:
LoggingProgressReport,SilentProgressReport
public interface ProgressReport
Progress report of a file download operation.
-
Method Summary
Modifier and TypeMethodDescriptionvoidTriggered to signal completion of the download operation.voidTriggered to signal an error occurred during the download operation.voidTriggered to signal initiation of a download operation.voidupdate(long bytesRead) Triggered to signal successful retrieval of a chunk of the resource content.
-
Method Details
-
initiate
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
Triggered to signal an error occurred during the download operation.
-