public final class Platform extends Object
Modifier and Type | Field and Description |
---|---|
static int |
AIX |
static int |
ANDROID |
static String |
ARCH
Current platform architecture.
|
static String |
C_LIBRARY_NAME
Canonical name of this platform's C runtime library.
|
static int |
FREEBSD |
static int |
GNU |
static boolean |
HAS_AWT
Whether this platform provides the AWT Component class; also false if
running headless.
|
static boolean |
HAS_BUFFERS
Whether this platform provides NIO Buffers.
|
static boolean |
HAS_DLL_CALLBACKS
Whether in-DLL callbacks are supported.
|
static boolean |
HAS_JAWT
Whether this platform supports the JAWT library.
|
static int |
KFREEBSD |
static int |
LINUX |
static int |
MAC |
static String |
MATH_LIBRARY_NAME
Canonical name of this platform's math library.
|
static int |
NETBSD |
static int |
OPENBSD |
static String |
RESOURCE_PREFIX
Canonical resource prefix for the current platform.
|
static boolean |
RO_FIELDS
Whether read-only (final) fields within Structures are supported.
|
static int |
SOLARIS |
static int |
UNSPECIFIED |
static int |
WINDOWS |
static int |
WINDOWSCE |
Modifier and Type | Method and Description |
---|---|
(package private) static String |
getCanonicalArchitecture(String arch,
boolean softfloat) |
(package private) static String |
getNativeLibraryResourcePrefix()
Generate a canonical String prefix based on the current OS
type/arch/name.
|
(package private) static String |
getNativeLibraryResourcePrefix(int osType,
String arch,
String name)
Generate a canonical String prefix based on the given OS
type/arch/name.
|
(package private) static String |
getNativeLibraryResourcePrefix(int osType,
String arch,
String name,
boolean isSoftfloat) |
static int |
getOSType() |
static boolean |
hasRuntimeExec() |
static boolean |
is64Bit() |
static boolean |
isAix()
Deprecated.
|
static boolean |
isAIX() |
static boolean |
isAndroid() |
static boolean |
isARM() |
static boolean |
isFreeBSD() |
static boolean |
isGNU() |
static boolean |
isIntel() |
static boolean |
iskFreeBSD() |
static boolean |
isLinux() |
static boolean |
isMac() |
static boolean |
isNetBSD() |
static boolean |
isOpenBSD() |
static boolean |
isPPC() |
static boolean |
isSolaris() |
static boolean |
isSPARC() |
static boolean |
isWindows()
Returns true for any windows variant.
|
static boolean |
isWindowsCE() |
static boolean |
isX11() |
public static final int UNSPECIFIED
public static final int MAC
public static final int LINUX
public static final int WINDOWS
public static final int SOLARIS
public static final int FREEBSD
public static final int OPENBSD
public static final int WINDOWSCE
public static final int AIX
public static final int ANDROID
public static final int GNU
public static final int KFREEBSD
public static final int NETBSD
public static final boolean RO_FIELDS
public static final boolean HAS_BUFFERS
public static final boolean HAS_AWT
public static final boolean HAS_JAWT
public static final String MATH_LIBRARY_NAME
public static final String C_LIBRARY_NAME
public static final boolean HAS_DLL_CALLBACKS
public static final String RESOURCE_PREFIX
public static final String ARCH
public static final int getOSType()
public static final boolean isMac()
public static final boolean isAndroid()
public static final boolean isLinux()
public static final boolean isAIX()
public static final boolean isAix()
public static final boolean isWindowsCE()
public static final boolean isWindows()
public static final boolean isSolaris()
public static final boolean isFreeBSD()
public static final boolean isOpenBSD()
public static final boolean isNetBSD()
public static final boolean isGNU()
public static final boolean iskFreeBSD()
public static final boolean isX11()
public static final boolean hasRuntimeExec()
public static final boolean is64Bit()
public static final boolean isIntel()
public static final boolean isPPC()
public static final boolean isARM()
public static final boolean isSPARC()
static String getNativeLibraryResourcePrefix()
static String getNativeLibraryResourcePrefix(int osType, String arch, String name)
osType
- from getOSType()
arch
- from os.arch
System propertyname
- from os.name
System property