| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jgoodies.common.base.SystemUtils
public class SystemUtils
Provides convenience behavior to determine the operating system and Java version.
| Field Summary | |
|---|---|
| static boolean | HAS_MODERN_RASTERIZERTrue since Java 6 update 10. | 
| static boolean | IS_JAVA_6True if this is Java 6. | 
| static boolean | IS_JAVA_7True if this is Java 7. | 
| static boolean | IS_JAVA_7_OR_LATERTrue if this is Java 7.x or later. | 
| static boolean | IS_LAF_WINDOWS_XP_ENABLEDTrue if the Windows XP Look&Feel is enabled. | 
| static boolean | IS_LOW_RESOLUTIONIs true if this environment's default toolkit reports a screen resolution below 120 dpi. | 
| static boolean | IS_OS_LINUXIs true if this is Linux. | 
| static boolean | IS_OS_MACTrue if this is the Mac OS. | 
| static boolean | IS_OS_SOLARISTrue if this is Solaris. | 
| static boolean | IS_OS_WINDOWSTrue if this is Windows. | 
| static boolean | IS_OS_WINDOWS_2000True if this is Windows 2000. | 
| static boolean | IS_OS_WINDOWS_6_OR_LATERTrue if this is Windows Vista/Server 2008/7/2008 R2. | 
| static boolean | IS_OS_WINDOWS_7True if this is Windows 7. | 
| static boolean | IS_OS_WINDOWS_8True if this is Windows 8. | 
| static boolean | IS_OS_WINDOWS_98True if this is Windows 98. | 
| static boolean | IS_OS_WINDOWS_METrue if this is Windows ME. | 
| static boolean | IS_OS_WINDOWS_VISTATrue if this is Windows Vista or Server 2008. | 
| static boolean | IS_OS_WINDOWS_XPTrue if this is Windows XP. | 
| protected static String | JAVA_VERSIONThe os.nameSystem Property. | 
| protected static String | OS_NAMEThe os.nameSystem Property. | 
| protected static String | OS_VERSIONThe os.versionSystem 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) | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected static final String OS_NAME
os.name System Property. Operating system name.
 Defaults to null, if the runtime does not have security
 access to read this property or the property does not exist.
protected static final String OS_VERSION
os.version System Property. Operating system version.
 Defaults to null, if the runtime does not have security
 access to read this property or the property does not exist.
protected static final String JAVA_VERSION
os.name System Property. Operating system name.
 Defaults to null, if the runtime does not have security
 access to read this property or the property does not exist.
public static final boolean IS_OS_LINUX
public static final boolean IS_OS_MAC
public static final boolean IS_OS_SOLARIS
public static final boolean IS_OS_WINDOWS
public static final boolean IS_OS_WINDOWS_98
public static final boolean IS_OS_WINDOWS_ME
public static final boolean IS_OS_WINDOWS_2000
public static final boolean IS_OS_WINDOWS_XP
public static final boolean IS_OS_WINDOWS_VISTA
public static final boolean IS_OS_WINDOWS_7
public static final boolean IS_OS_WINDOWS_8
public static final boolean IS_OS_WINDOWS_6_OR_LATER
public static final boolean IS_JAVA_6
public static final boolean IS_JAVA_7
public static final boolean IS_JAVA_7_OR_LATER
public static final boolean HAS_MODERN_RASTERIZER
public static final boolean IS_LAF_WINDOWS_XP_ENABLED
public static final boolean IS_LOW_RESOLUTION
| Constructor Detail | 
|---|
protected SystemUtils()
| Method Detail | 
|---|
protected static String getSystemProperty(String key)
key - the name of the system property
null if there's
     no such value, or an empty String when
     a SecurityException has been caught
protected static boolean startsWith(String str,
                                    String prefix)
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||