public class AutoDownloader implements Downloader
| Modifier and Type | Method and Description |
|---|---|
boolean |
download() |
boolean |
downloadFile()
Downloads a file a file located at
donwloadURL, compares its MD5 checksum with md5Sum and extracts it into extractionLocation.If the download or the verification failed the caller can take actions in mD5SumCheckUnequalsCallback and downloadFailureCallback callbacks. |
DownloadCombi |
handleDownloadException()
Possibility for subclasses to retrieve data for a new DownloadCombi (from the user, from a website, etc.).This implementation always returns
null. |
boolean |
isCanceled()
Possibility for subclasses to a cancelation check. This implementation always returns
false. |
downloadFilepublic boolean downloadFile()
Downloads a file a file located at donwloadURL, compares its MD5 checksum with md5Sum and extracts it into extractionLocation.If the download or the verification failed the caller can take actions in mD5SumCheckUnequalsCallback and downloadFailureCallback callbacks.
false if the validation, download or extraction have been canceled, otherwise true, but exception might have been throwndownloadCombi is an existing path which doesn't point to a directorypublic boolean download()
public boolean isCanceled()
Possibility for subclasses to a cancelation check. This implementation always returns false.
true if the download ought to be canceled as soon as possible, false otherwisepublic DownloadCombi handleDownloadException()
Possibility for subclasses to retrieve data for a new DownloadCombi (from the user, from a website, etc.).This implementation always returns null.
null if the download ought to be canceled