public interface ProgressReport
| Modifier and Type | Method and Description |
|---|---|
void |
completed()
Triggered to signal completion of the download operation.
|
void |
error(java.lang.Exception ex)
Triggered to signal an error occurred during the download operation.
|
void |
initiate(java.net.URI uri,
long total)
Triggered to signal initiation of a download operation.
|
void |
update(long bytesRead)
Triggered to signal successful retrieval of a chunk
of the resource content.
|
void initiate(java.net.URI uri,
long total)
uri - the URI of the resource being downloadedtotal - the total length of resource content.void update(long bytesRead)
bytesRead - the number of bytes retrieved.void completed()
void error(java.lang.Exception ex)
Copyright © 2009-2023 Open-Source. All Rights Reserved.