Class JsonDownloadInfoLoader
java.lang.Object
me.hsgamer.hscore.downloader.core.loader.MapDownloadInfoLoader
me.hsgamer.hscore.downloader.json.JsonDownloadInfoLoader
- All Implemented Interfaces:
DownloadInfoLoader
A simple
DownloadInfoLoader
that loads the download info from a JSON file.-
Constructor Summary
ConstructorDescriptionJsonDownloadInfoLoader
(String dbUrl) Create a newJsonDownloadInfoLoader
JsonDownloadInfoLoader
(String dbUrl, UserAgent userAgent) Create a newJsonDownloadInfoLoader
-
Method Summary
Modifier and TypeMethodDescriptionloadMap
(Downloader downloader) Load the map for theDownloadInfo
parserMethods inherited from class me.hsgamer.hscore.downloader.core.loader.MapDownloadInfoLoader
load
-
Constructor Details
-
JsonDownloadInfoLoader
Create a newJsonDownloadInfoLoader
- Parameters:
dbUrl
- the url of the json fileuserAgent
- the user agent to use
-
JsonDownloadInfoLoader
Create a newJsonDownloadInfoLoader
- Parameters:
dbUrl
- the url of the json file
-
-
Method Details
-
loadMap
Description copied from class:MapDownloadInfoLoader
Load the map for theDownloadInfo
parser- Specified by:
loadMap
in classMapDownloadInfoLoader
- Parameters:
downloader
- the downloader- Returns:
- the map
-