public final class RavenUpdater extends Object
Modifier and Type | Field and Description |
---|---|
static int |
STATUS_CODE_BUILDING_PARSER_FAILED
Status code if the building of the parser failed
|
static int |
STATUS_CODE_DOWNLOAD_CORRUPTED
Status code if the download was corrupted
|
static int |
STATUS_CODE_FAILED_FOR_UNKNOWN_REASON
Status code if the download failed for an unknown reason
|
static int |
STATUS_CODE_IOERROR_OCCURRED
Status code if the download URL was not valid
|
static int |
STATUS_CODE_NO_UPDATE_AVAILABLE
Status code if no update is available
|
static int |
STATUS_CODE_SUCCESS
Status code if the download was successful
|
static int |
STATUS_CODE_UPDATE_AVAILABLE
Status code if a new update is available
|
static int |
STATUS_CODE_UPDATE_FILES_NOT_FOUND
Status code if the update files could not be found
|
static int |
STATUS_CODE_UPDATE_LOCATION_INVALID
Status code if the download location is invalid/malformed
|
static int |
STATUS_CODE_UPDATE_SCHEMA_FILE_CORRUPTED
Status code if the schema file has been corrupted
|
static int |
STATUS_CODE_UPDATE_SCHEMA_FILE_NOT_FOUND
Status code if the schema file has not been found
|
Modifier and Type | Method and Description |
---|---|
static int |
downloadUpdate() |
static int |
getMajorVersion()
Returns the major version of the last found update.
|
static int |
getMinorVersion()
Returns the minor version of the last found update.
|
static String |
getUpdateInformation()
Returns the update information of the last found update.
|
static int |
updateAvailable()
Checks whether updates for Raven are available.
|
public static final int STATUS_CODE_UPDATE_AVAILABLE
public static final int STATUS_CODE_NO_UPDATE_AVAILABLE
public static final int STATUS_CODE_UPDATE_SCHEMA_FILE_NOT_FOUND
public static final int STATUS_CODE_UPDATE_SCHEMA_FILE_CORRUPTED
public static final int STATUS_CODE_BUILDING_PARSER_FAILED
public static final int STATUS_CODE_UPDATE_LOCATION_INVALID
public static final int STATUS_CODE_IOERROR_OCCURRED
public static final int STATUS_CODE_SUCCESS
public static final int STATUS_CODE_DOWNLOAD_CORRUPTED
public static final int STATUS_CODE_UPDATE_FILES_NOT_FOUND
public static final int STATUS_CODE_FAILED_FOR_UNKNOWN_REASON
public static int updateAvailable()
true
if updates are available, false
otherwisepublic static int getMajorVersion()
updateAvailable
to check for updates
before using this method-1
if no update was foundpublic static int getMinorVersion()
updateAvailable
to check for updates
before using this method-1
if no update was foundpublic static String getUpdateInformation()
updateAvailable
to check for updates
before using this methodnull
if no update was foundpublic static int downloadUpdate()
true
if the download was successful, false
otherwise