public static final class ProgressListener.Adjusted extends ProgressListener
total and bytes.ProgressListener.Adjusted, ProgressListener.ProgressHttpEntity| Constructor and Description |
|---|
ProgressListener.Adjusted(ProgressListener relay,
long bytesOffset,
long adjustedTotal) |
| Modifier and Type | Method and Description |
|---|---|
void |
onProgress(long bytes,
long total)
Gets called when some bytes have been transferred since the last time it
was called and the progress interval has passed.
|
long |
progressInterval()
Should return how often transferred bytes should be reported to this
listener, in milliseconds.
|
public ProgressListener.Adjusted(ProgressListener relay, long bytesOffset, long adjustedTotal)
public void onProgress(long bytes,
long total)
ProgressListeneronProgress in class ProgressListenerbytes - the number of bytes transferred.total - the size of the file in bytes.public long progressInterval()
ProgressListenerprogressInterval in class ProgressListener