|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.util.platform.Java
Provides common access to specifics about the version of Java that a virtual machine supports.
Determines the version of the Java Virtual Machine by checking for the availablity of version specific classes.
Classes are loaded in the following order:
Field Summary | |
static int |
VERSION_1_0
Java version 1.0 token |
static int |
VERSION_1_1
Java version 1.1 token |
static int |
VERSION_1_2
Java version 1.2 token |
static int |
VERSION_1_3
Java version 1.3 token |
static int |
VERSION_1_4
Java version 1.4 token |
Method Summary | |
static int |
getVersion()
Return the version of Java supported by the VM. |
static boolean |
isCompatible(int version)
Retrurns true if the current virtual machine is compatible with the given version identifer. |
static boolean |
isVersion(int version)
Retrurns true if the given version identifer is equal to the version identifier of the current virtuial machine. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int VERSION_1_0
public static final int VERSION_1_1
public static final int VERSION_1_2
public static final int VERSION_1_3
public static final int VERSION_1_4
Method Detail |
public static int getVersion()
public static boolean isVersion(int version)
version
- The version identifier to check for.
public static boolean isCompatible(int version)
version
- The version identifier to check compatibility of.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |