me.escapeNT.pail.Util
Class UpdateHandler

java.lang.Object
  extended by me.escapeNT.pail.Util.UpdateHandler

public class UpdateHandler
extends Object

Class containing static methods for checking and downloading updates for pail.

Author:
escapeNT

Field Summary
static File updateFile
           
 
Constructor Summary
UpdateHandler()
           
 
Method Summary
static void downloadLatest(UpdateView dialog)
          Downloads the latest version to the updates folder.
static List<String> getChanges()
          Gets the list of changes in the latest version.
static String getCurrentVersion()
           
static Boolean isUpToDate()
          Checks if the current Pail version is up to date.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

updateFile

public static final File updateFile
Constructor Detail

UpdateHandler

public UpdateHandler()
Method Detail

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.