insensa.helpers
Class VersionHelper

java.lang.Object
  extended by insensa.helpers.VersionHelper

public class VersionHelper
extends java.lang.Object


Field Summary
static int ARCH_32BIT
           
static int ARCH_64BIT
           
static int ARCH_UNKNOWN
           
private static VersionHelper instance
           
private  ItemInsensa itemInsensa
           
static int OS_LINUX
           
static int OS_MAC
           
static int OS_UNKNOWN
           
static int OS_WIN
           
static int VERSION_EQUAL
           
static int VERSION_NEWER
           
static int VERSION_OLDER
           
static int VERSION_UNKNOWN
           
 
Constructor Summary
private VersionHelper()
           
 
Method Summary
static java.lang.Integer compareVersion(java.lang.String testObject, java.lang.String compareWith)
          Compares two version numbers
 java.lang.String getArch()
           
static VersionHelper getInstance()
           
 java.lang.String getOs()
           
 java.lang.String getVersion()
           
static boolean isOlderThan(java.lang.String testObject, java.lang.String compareWith)
          Deprecated. since 0.1.6 Use compareVersion(String, String) instead
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION_OLDER

public static final int VERSION_OLDER
See Also:
Constant Field Values

VERSION_NEWER

public static final int VERSION_NEWER
See Also:
Constant Field Values

VERSION_EQUAL

public static final int VERSION_EQUAL
See Also:
Constant Field Values

VERSION_UNKNOWN

public static final int VERSION_UNKNOWN
See Also:
Constant Field Values

OS_UNKNOWN

public static final int OS_UNKNOWN
See Also:
Constant Field Values

OS_WIN

public static final int OS_WIN
See Also:
Constant Field Values

OS_LINUX

public static final int OS_LINUX
See Also:
Constant Field Values

OS_MAC

public static final int OS_MAC
See Also:
Constant Field Values

ARCH_UNKNOWN

public static final int ARCH_UNKNOWN
See Also:
Constant Field Values

ARCH_32BIT

public static final int ARCH_32BIT
See Also:
Constant Field Values

ARCH_64BIT

public static final int ARCH_64BIT
See Also:
Constant Field Values

itemInsensa

private ItemInsensa itemInsensa

instance

private static VersionHelper instance
Constructor Detail

VersionHelper

private VersionHelper()
Throws:
org.jdom.JDOMException
java.io.IOException
Method Detail

getInstance

public static VersionHelper getInstance()
Returns:

getVersion

public java.lang.String getVersion()
Returns:

getArch

public java.lang.String getArch()

getOs

public java.lang.String getOs()

compareVersion

public static java.lang.Integer compareVersion(java.lang.String testObject,
                                               java.lang.String compareWith)
Compares two version numbers

Parameters:
testObject -
compareWith -
Returns:

isOlderThan

public static boolean isOlderThan(java.lang.String testObject,
                                  java.lang.String compareWith)
Deprecated. since 0.1.6 Use compareVersion(String, String) instead

Parameters:
testObject -
compareWith -
Returns: