com.jgoodies.common.base
public class SystemUtils extends Object
Version: $Revision: 1.6 $
Field Summary | |
---|---|
static boolean | IS_JAVA_1_4
True if this is Java 1.4. |
static boolean | IS_JAVA_5
True if this is Java 5.x. |
static boolean | IS_JAVA_5_OR_LATER
True if this is Java 5.x or later. |
static boolean | IS_JAVA_6
True if this is Java 6. |
static boolean | IS_JAVA_6_OR_LATER
True if this is Java 6.x or later. |
static boolean | IS_JAVA_7
True if this is Java 7. |
static boolean | IS_JAVA_7_OR_LATER
True if this is Java 6.x or later. |
static boolean | IS_OS_LINUX
Is true if this is Linux. |
static boolean | IS_OS_MAC
True if this is the Mac OS. |
static boolean | IS_OS_SOLARIS
True if this is Solaris. |
static boolean | IS_OS_WINDOWS
True if this is Windows. |
static boolean | IS_OS_WINDOWS_2000
True if this is Windows 2000. |
static boolean | IS_OS_WINDOWS_6_OR_LATER
True if this is Windows Vista/Server 2008/7/2008 R2. |
static boolean | IS_OS_WINDOWS_98
True if this is Windows 98. |
static boolean | IS_OS_WINDOWS_ME
True if this is Windows ME. |
static boolean | IS_OS_WINDOWS_VISTA
True if this is Windows Vista or Server 2008. |
static boolean | IS_OS_WINDOWS_XP
True if this is Windows XP. |
protected static String | JAVA_VERSION
The {@code os.name} System Property. |
protected static String | OS_NAME
The {@code os.name} System Property. |
protected static String | OS_VERSION
The {@code os.version} System Property. |
Constructor Summary | |
---|---|
protected | SystemUtils() |
Method Summary | |
---|---|
protected static String | getSystemProperty(String key)
Tries to look up the System property for the given key.
|
protected static boolean | startsWith(String str, String prefix) |
Defaults to {@code null}, if the runtime does not have security access to read this property or the property does not exist.
Defaults to {@code null}, if the runtime does not have security access to read this property or the property does not exist.
Defaults to {@code null}, if the runtime does not have security access to read this property or the property does not exist.
Parameters: key the name of the system property
Returns: the system property's String value, or {@code null} if there's no such value, or an empty String when a SecurityException has been caught