Class UpdateAutoDownloader
java.lang.Object
com.biglybt.ui.swt.update.UpdateAutoDownloader
- All Implemented Interfaces:
ResourceDownloaderListener
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final UpdateAutoDownloader.cbCompletionprivate ArrayListprivate Iteratorprivate final Update[] -
Constructor Summary
ConstructorsConstructorDescriptionUpdateAutoDownloader(Update[] updates, UpdateAutoDownloader.cbCompletion completionCallback) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidbooleancompleted(ResourceDownloader downloader, InputStream data) voidfailed(ResourceDownloader downloader, ResourceDownloaderException e) private booleanvoidreportActivity(ResourceDownloader downloader, String activity) voidreportAmountComplete(ResourceDownloader downloader, long amount) voidreportPercentComplete(ResourceDownloader downloader, int percentage) private voidstart()
-
Field Details
-
updates
-
downloaders
-
iterDownloaders
-
completionCallback
-
-
Constructor Details
-
UpdateAutoDownloader
- Parameters:
us-
-
-
Method Details
-
start
private void start() -
nextUpdate
private boolean nextUpdate()- Since:
- 3.0.0.7
-
allDownloadsComplete
private void allDownloadsComplete()- Since:
- 3.0.0.7
-
completed
- Specified by:
completedin interfaceResourceDownloaderListener- Parameters:
downloader-data-- Returns:
- return true if the completed download is OK. If false is returned then if there are alternative download sources they will be tried. If there are no other sources then the download will be "failed"
-
failed
- Specified by:
failedin interfaceResourceDownloaderListener
-
reportActivity
- Specified by:
reportActivityin interfaceResourceDownloaderListener
-
reportAmountComplete
- Specified by:
reportAmountCompletein interfaceResourceDownloaderListener
-
reportPercentComplete
- Specified by:
reportPercentCompletein interfaceResourceDownloaderListener
-