com.jivesoftware.sparkimpl.updater
Class CheckUpdates
java.lang.Object
com.jivesoftware.sparkimpl.updater.CheckUpdates
- public class CheckUpdates
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UPDATING
public static boolean UPDATING
CheckUpdates
public CheckUpdates()
newBuildAvailable
public SparkVersion newBuildAvailable()
isNewBuildAvailableFromJivesoftware
public SparkVersion isNewBuildAvailableFromJivesoftware()
- Returns true if there is a new build available for download.
- Returns:
- true if there is a new build available for download.
downloadUpdate
public void downloadUpdate(java.io.File downloadedFile,
SparkVersion version)
checkForUpdate
public void checkForUpdate(boolean forced)
throws java.lang.Exception
- Throws:
java.lang.Exception
isGreater
public boolean isGreater(java.lang.String version1,
java.lang.String version2)
- Returns true if the first version number is greater than the second.
- Parameters:
version1
- the first version number.version2
- the second version number.
- Returns:
- returns true if the first version is greater than the second.
getLatestVersion
public static SparkVersion getLatestVersion(org.jivesoftware.smack.XMPPConnection connection)
throws org.jivesoftware.smack.XMPPException
- Throws:
org.jivesoftware.smack.XMPPException
isSparkPluginInstalled
public static boolean isSparkPluginInstalled(org.jivesoftware.smack.XMPPConnection con)