- java.lang.Object
-
- jnr.posix.util.Platform
-
public class Platform extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringARCHstatic booleanIS_32_BITstatic booleanIS_64_BITstatic booleanIS_BSDstatic booleanIS_DRAGONFLYstatic booleanIS_FREEBSDstatic booleanIS_LINUXstatic booleanIS_MACstatic booleanIS_OPENBSDstatic booleanIS_SOLARISstatic booleanIS_WINDOWSstatic booleanIS_WINDOWS_20Xstatic booleanIS_WINDOWS_7static booleanIS_WINDOWS_9Xstatic booleanIS_WINDOWS_NTstatic booleanIS_WINDOWS_SERVERstatic booleanIS_WINDOWS_VISTAstatic booleanIS_WINDOWS_XPstatic StringOS_NAMEstatic StringOS_NAME_LCstatic Map<String,String>OS_NAMES
-
Constructor Summary
Constructors Constructor Description Platform()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringenvCommand()static StringgetOSName()static StringgetProperty(String property, String defValue)An extension overSystem.getPropertymethod.
-
-
-
Field Detail
-
OS_NAME
public static final String OS_NAME
-
OS_NAME_LC
public static final String OS_NAME_LC
-
IS_WINDOWS
public static final boolean IS_WINDOWS
-
IS_WINDOWS_9X
public static final boolean IS_WINDOWS_9X
-
IS_WINDOWS_NT
public static final boolean IS_WINDOWS_NT
-
IS_WINDOWS_20X
public static final boolean IS_WINDOWS_20X
-
IS_WINDOWS_XP
public static final boolean IS_WINDOWS_XP
-
IS_WINDOWS_VISTA
public static final boolean IS_WINDOWS_VISTA
-
IS_WINDOWS_SERVER
public static final boolean IS_WINDOWS_SERVER
-
IS_WINDOWS_7
public static final boolean IS_WINDOWS_7
-
IS_MAC
public static final boolean IS_MAC
-
IS_FREEBSD
public static final boolean IS_FREEBSD
-
IS_DRAGONFLY
public static final boolean IS_DRAGONFLY
-
IS_OPENBSD
public static final boolean IS_OPENBSD
-
IS_LINUX
public static final boolean IS_LINUX
-
IS_SOLARIS
public static final boolean IS_SOLARIS
-
IS_BSD
public static final boolean IS_BSD
-
IS_32_BIT
public static final boolean IS_32_BIT
-
IS_64_BIT
public static final boolean IS_64_BIT
-
ARCH
public static final String ARCH
-
-
Method Detail
-
envCommand
public static final String envCommand()
-
getOSName
public static String getOSName()
-
getProperty
public static String getProperty(String property, String defValue)
An extension overSystem.getPropertymethod. Handles security restrictions, and returns the default value if the access to the property is restricted.- Parameters:
property- The system property name.defValue- The default value.- Returns:
- The value of the system property, or the default value.
-
-