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 |
|---|---|
DownloadVersion |
findLatest(boolean includeRC)
Returns the latest available version.
|
DownloadVersion |
findVersion(String name)
Returns the version with a given name.
|
File |
getJsonDownloadsFile()
Returns the parsed file.
|
List<DownloadVersion> |
getVersions()
Returns the version 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 DownloadVersion findVersion(String name)
name - Version to find.null if no version 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<DownloadVersion> getVersions()
public DownloadVersion findLatest(boolean includeRC)
includeRC - Include release candidates (true) or only return releases (false).Copyright © 2019 fuin.org (Germany). All rights reserved.