public class Platform extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ARCH |
static boolean |
IS_32_BIT |
static boolean |
IS_64_BIT |
static boolean |
IS_BSD |
static boolean |
IS_FREEBSD |
static boolean |
IS_LINUX |
static boolean |
IS_MAC |
static boolean |
IS_OPENBSD |
static boolean |
IS_SOLARIS |
static boolean |
IS_WINDOWS |
static boolean |
IS_WINDOWS_20X |
static boolean |
IS_WINDOWS_7 |
static boolean |
IS_WINDOWS_9X |
static boolean |
IS_WINDOWS_NT |
static boolean |
IS_WINDOWS_SERVER |
static boolean |
IS_WINDOWS_VISTA |
static boolean |
IS_WINDOWS_XP |
static String |
OS_NAME |
static String |
OS_NAME_LC |
static Map<String,String> |
OS_NAMES |
Constructor and Description |
---|
Platform() |
Modifier and Type | Method and Description |
---|---|
static String |
envCommand() |
static String |
getOSName() |
static String |
getProperty(String property,
String defValue)
An extension over
System.getProperty method. |
public static final String OS_NAME
public static final String OS_NAME_LC
public static final boolean IS_WINDOWS
public static final boolean IS_WINDOWS_9X
public static final boolean IS_WINDOWS_NT
public static final boolean IS_WINDOWS_20X
public static final boolean IS_WINDOWS_XP
public static final boolean IS_WINDOWS_VISTA
public static final boolean IS_WINDOWS_SERVER
public static final boolean IS_WINDOWS_7
public static final boolean IS_MAC
public static final boolean IS_FREEBSD
public static final boolean IS_OPENBSD
public static final boolean IS_LINUX
public static final boolean IS_SOLARIS
public static final boolean IS_BSD
public static final boolean IS_32_BIT
public static final boolean IS_64_BIT
public static final String ARCH
public static final String envCommand()
public static String getOSName()
public static String getProperty(String property, String defValue)
System.getProperty
method.
Handles security restrictions, and returns the default
value if the access to the property is restricted.property
- The system property name.defValue
- The default value.Copyright © 2015. All Rights Reserved.