public final class Downloads extends Object
| Constructor and Description |
|---|
Downloads(File jsonDownloadsFile)
Constructor with 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(File jsonDownloadsFile) throws IOException
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 © 2016 fuin.org (Germany). All rights reserved.