|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StreamMonitor
A monitor of a download activity or activities.
Method Summary | |
---|---|
void |
notifyCompletion(URL resource)
Notify the monitor of the successful completion of a download process. |
void |
notifyError(URL resource,
String message)
Notify the monitor of the an error during the download process. |
void |
notifyUpdate(URL resource,
int expected,
int count)
Notify the monitor of the update in the download status. |
Method Detail |
---|
void notifyUpdate(URL resource, int expected, int count)
resource
- the name of the remote resource being downloaded.expected
- the expected number of bytes to be downloaded.count
- the number of bytes downloaded.void notifyCompletion(URL resource)
resource
- the name of the remote resource.void notifyError(URL resource, String message)
resource
- the name of the remote resource.message
- a non-localized message describing the problem in english.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |