public abstract class ProgressListener
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ProgressListener.Adjusted
A progress listener that forwards on to another ProgressListener
after adjusting the
total and bytes. |
static class |
ProgressListener.ProgressHttpEntity
A wrapper for an
HttpEntity that can count the number of bytes
transferred. |
| Constructor and Description |
|---|
ProgressListener() |
| Modifier and Type | Method and Description |
|---|---|
abstract 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 abstract void onProgress(long bytes,
long total)
bytes - the number of bytes transferred.total - the size of the file in bytes.public long progressInterval()