Class MapDownloadInfoLoader
java.lang.Object
me.hsgamer.hscore.downloader.core.loader.MapDownloadInfoLoader
- All Implemented Interfaces:
DownloadInfoLoader
- Direct Known Subclasses:
JsonDownloadInfoLoader
A simple
DownloadInfoLoader
that loads the download info from a map.
The format of the map:
{
"name1": {
"file-name": "name1.jar",
"version": "1.0",
"direct-link": "example.com/name1.jar",
...
},
"name2": {
"file-name": "name2.jar",
"version": "1.0-SN",
"direct-link": "example.com/name2.jar",
...
},
...
}
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionload
(Downloader downloader) Load theDownloadInfo
loadMap
(Downloader downloader) Load the map for theDownloadInfo
parser
-
Constructor Details
-
MapDownloadInfoLoader
public MapDownloadInfoLoader()
-
-
Method Details
-
loadMap
Load the map for theDownloadInfo
parser- Parameters:
downloader
- the downloader- Returns:
- the map
-
load
Description copied from interface:DownloadInfoLoader
Load theDownloadInfo
- Specified by:
load
in interfaceDownloadInfoLoader
- Parameters:
downloader
- the downloader- Returns:
- the
DownloadInfo
-