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
ConstructorsConstructorDescriptionJsonDownloadInfoLoader(String dbUrl) Create a newJsonDownloadInfoLoaderJsonDownloadInfoLoader(String dbUrl, UserAgent userAgent) Create a newJsonDownloadInfoLoader -
Method Summary
Modifier and TypeMethodDescriptionloadMap(Downloader downloader) Load the map for theDownloadInfoparserMethods 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:MapDownloadInfoLoaderLoad the map for theDownloadInfoparser- Specified by:
loadMapin classMapDownloadInfoLoader- Parameters:
downloader- the downloader- Returns:
- the map
-