com.ctc.wstx.compat
Class JdkInfo

java.lang.Object
  extended by com.ctc.wstx.compat.JdkInfo

public class JdkInfo
extends java.lang.Object

Simple accessor class that can access JDK version information. Separate from JdkFeatures so that former can call static methods defined in this class, from its own static initializers.


Constructor Summary
JdkInfo()
           
 
Method Summary
static JdkImpl constructImpl(int version)
          Really crude class-loading functionality; just tries to create JDK wrapper instance for given version.
static int getJDKVersion()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdkInfo

public JdkInfo()
Method Detail

getJDKVersion

public static int getJDKVersion()
Returns:
Simple int value for version, from 101 to 999 representing theoretical version numbers from 1.0.1 to 99.9.9; or 0 to indicate no version information could be gathered.

constructImpl

public static JdkImpl constructImpl(int version)
                             throws java.lang.Exception
Really crude class-loading functionality; just tries to create JDK wrapper instance for given version.

Throws:
java.lang.Exception