|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ehcache.impl.internal.classes.commonslang.SystemUtils
public class SystemUtils
Helpers for java.lang.System
.
If a system property cannot be read due to security restrictions, the corresponding field in this class will be set
to null
and a message will be written to System.err
.
#ThreadSafe#
Field Summary | |
---|---|
static java.lang.String |
JAVA_SPECIFICATION_VERSION
The java.specification.version System Property. |
Constructor Summary | |
---|---|
SystemUtils()
SystemUtils instances should NOT be constructed in standard programming. |
Method Summary | |
---|---|
static boolean |
isJavaVersionAtLeast(JavaVersion requiredVersion)
Is the Java version at least the requested version. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String JAVA_SPECIFICATION_VERSION
The java.specification.version
System Property. Java Runtime Environment specification version.
Defaults to null
if the runtime does not have security access to read this property or the property does
not exist.
This value is initialized when the class is loaded. If System.setProperty(String,String)
or
System.setProperties(java.util.Properties)
is called after this class is loaded, the value will be out of
sync with that System property.
Constructor Detail |
---|
public SystemUtils()
SystemUtils instances should NOT be constructed in standard programming. Instead, the class should be used as
SystemUtils.FILE_SEPARATOR
.
This constructor is public to permit tools that require a JavaBean instance to operate.
Method Detail |
---|
public static boolean isJavaVersionAtLeast(JavaVersion requiredVersion)
Is the Java version at least the requested version.
Example input:
1.2f
to test for Java 1.21.31f
to test for Java 1.3.1
requiredVersion
- the required version, for example 1.31f
true
if the actual version is equal or greater than the required version
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |