|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dropbox.client2.ProgressListener
public abstract class ProgressListener
Receives file transfer progress updates for some API calls, e.g. getFile and putFile.
Nested Class Summary | |
---|---|
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 Summary | |
---|---|
ProgressListener()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProgressListener()
Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |