me.escapeNT.pail.Util
Class UpdateHandler
java.lang.Object
me.escapeNT.pail.Util.UpdateHandler
public class UpdateHandler
- extends Object
Class containing static methods for checking and downloading updates for pail.
- Author:
- escapeNT
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
updateFile
public static final File updateFile
UpdateHandler
public UpdateHandler()
isUpToDate
public static Boolean isUpToDate()
- Checks if the current Pail version is up to date.
- Returns:
- True if this Pail's version number is greater than or equal to the current version,
false if it is lower, or null if the server could not be contacted.
getChanges
public static List<String> getChanges()
- Gets the list of changes in the latest version.
- Returns:
- The change list.
downloadLatest
public static void downloadLatest(UpdateView dialog)
throws IOException
- Downloads the latest version to the updates folder.
- Parameters:
dialog
-
- Throws:
IOException
getCurrentVersion
public static String getCurrentVersion()
- Returns:
- the currentVersion
Copyright © 2011. All Rights Reserved.