Package com.biglybt.ui.swt.update
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.cbCompletion
private ArrayList
private Iterator
private final Update[]
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateAutoDownloader
(Update[] updates, UpdateAutoDownloader.cbCompletion completionCallback) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
boolean
completed
(ResourceDownloader downloader, InputStream data) void
failed
(ResourceDownloader downloader, ResourceDownloaderException e) private boolean
void
reportActivity
(ResourceDownloader downloader, String activity) void
reportAmountComplete
(ResourceDownloader downloader, long amount) void
reportPercentComplete
(ResourceDownloader downloader, int percentage) private void
start()
-
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:
completed
in 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:
failed
in interfaceResourceDownloaderListener
-
reportActivity
- Specified by:
reportActivity
in interfaceResourceDownloaderListener
-
reportAmountComplete
- Specified by:
reportAmountComplete
in interfaceResourceDownloaderListener
-
reportPercentComplete
- Specified by:
reportPercentComplete
in interfaceResourceDownloaderListener
-