xmlBlaster 2.2.0 API

org.xmlBlaster.util
Class JdkCompatible

java.lang.Object
  extended by org.xmlBlaster.util.JdkCompatible

public class JdkCompatible
extends java.lang.Object

Helper to use only JDK 1.1 supported methods. For xmlBlaster CLIENT side java classes only, since xmlBlaster server only runs withc JDK 1.2 or newer.


Field Summary
static float DEFAULT_JAVA_VERSION
           
private static float majorJavaVersion
           
 
Constructor Summary
JdkCompatible()
           
 
Method Summary
private static float getMajorJavaVersion()
          Parses the java version system property to determine the major java version, ie 1.x
static boolean is14()
           
static boolean is15()
           
static boolean is16()
           
static boolean isApple()
           
static boolean isBEAWithUnsafeSupport()
           
static boolean isBlackdown()
           
static boolean isHPUX()
           
static boolean isIBM()
           
static boolean isSun()
           
static void setSystemProperty(java.lang.String key, java.lang.String value)
          Deprecated. since JDK 1.2
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

majorJavaVersion

private static final float majorJavaVersion

DEFAULT_JAVA_VERSION

public static final float DEFAULT_JAVA_VERSION
See Also:
Constant Field Values
Constructor Detail

JdkCompatible

public JdkCompatible()
Method Detail

setSystemProperty

public static void setSystemProperty(java.lang.String key,
                                     java.lang.String value)
Deprecated. since JDK 1.2

System.setProperty(String, String); is since JDK 1.2 This method supports JDK 1.1 as well


getMajorJavaVersion

private static final float getMajorJavaVersion()
Parses the java version system property to determine the major java version, ie 1.x

Returns:
A float of the form 1.x

is14

public static boolean is14()

is15

public static boolean is15()

is16

public static boolean is16()

isSun

public static boolean isSun()

isApple

public static boolean isApple()

isHPUX

public static boolean isHPUX()

isIBM

public static boolean isIBM()

isBlackdown

public static boolean isBlackdown()

isBEAWithUnsafeSupport

public static boolean isBEAWithUnsafeSupport()

xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.