public final class Downloads extends Object
| Constructor and Description |
|---|
Downloads(URL versionURL,
File jsonDownloadsFile)
Constructor with URL and local file.
|
| Modifier and Type | Method and Description |
|---|---|
DownloadOS |
findOS(String name)
Returns the OS with a given name.
|
File |
getJsonDownloadsFile()
Returns the parsed file.
|
List<DownloadOS> |
getOsList()
Returns the OS list.
|
void |
parse()
Loads the data from the JSON download versions file.
|
public Downloads(URL versionURL, File jsonDownloadsFile) throws IOException
versionURL - URL of the version JSON file.jsonDownloadsFile - Name of the JSON download file.IOException - Copying the event store version file from URL to local disc
failed.public DownloadOS findOS(String name)
name - OS name to find.null if no OS with that name was
found.public final void parse()
throws IOException
IOException - Parsing the event store version file failed.public final File getJsonDownloadsFile()
public List<DownloadOS> getOsList()
Copyright © 2018 fuin.org (Germany). All rights reserved.