|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface RepositoryPlugin.DownloadListener
The caller can specify any number of DownloadListener objects that are called back when a download is finished (potentially before the get method has returned).
| Method Summary | |
|---|---|
void |
failure(File file,
String reason)
Called when the file could not be downloaded from a remote repository. |
boolean |
progress(File file,
int percentage)
Can be called back regularly before success/failure but never after. |
void |
success(File file)
Called when the file is successfully downloaded from a remote repository. |
| Method Detail |
|---|
void success(File file)
throws Exception
file - The file that was downloaded
Exception - , are logged and ignored
void failure(File file,
String reason)
throws Exception
file - The file that was intended to be downloaded.
Exception - , are logged and ignored
boolean progress(File file,
int percentage)
throws Exception
file - The file that was intended to be downloadedpercentage - Percentage of file downloaded (can go down)
Exception - , are logged and ignored
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||