Package com.sun.jna
Klasse Platform
java.lang.Object
com.sun.jna.Platform
Provide simplified platform information.
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final int
static final int
static final String
Current platform architecture.static final String
Canonical name of this platform's C runtime library.static final int
static final int
static final int
static final boolean
Whether this platform provides the AWT Component class; also false if running headless.static final boolean
Whether this platform provides NIO Buffers.static final boolean
Whether in-DLL callbacks are supported.static final boolean
Whether this platform supports the JAWT library.static final int
static final int
static final int
static final String
Canonical name of this platform's math library.static final int
static final int
static final String
Canonical resource prefix for the current platform.static final boolean
Whether read-only (final) fields within Structures are supported.static final int
static final int
static final int
static final int
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibung(Package privat) static String
getCanonicalArchitecture
(String arch, int platform) (Package privat) static String
Generate a canonical String prefix based on the current OS type/arch/name.(Package privat) static String
getNativeLibraryResourcePrefix
(int osType, String arch, String name) Generate a canonical String prefix based on the given OS type/arch/name.static final int
static final boolean
static final boolean
is64Bit()
static final boolean
isAIX()
static final boolean
static final boolean
isARM()
static final boolean
static final boolean
static final boolean
isGNU()
static final boolean
isIntel()
static final boolean
static final boolean
isLinux()
static final boolean
static final boolean
isMac()
static final boolean
isMIPS()
static final boolean
isNetBSD()
static final boolean
static final boolean
isPPC()
(Package privat) static boolean
static final boolean
static final boolean
isSPARC()
static final boolean
Returns true for any windows variant.static final boolean
static final boolean
isX11()
-
Felddetails
-
UNSPECIFIED
public static final int UNSPECIFIED- Siehe auch:
-
MAC
public static final int MAC- Siehe auch:
-
LINUX
public static final int LINUX- Siehe auch:
-
WINDOWS
public static final int WINDOWS- Siehe auch:
-
SOLARIS
public static final int SOLARIS- Siehe auch:
-
FREEBSD
public static final int FREEBSD- Siehe auch:
-
OPENBSD
public static final int OPENBSD- Siehe auch:
-
WINDOWSCE
public static final int WINDOWSCE- Siehe auch:
-
AIX
public static final int AIX- Siehe auch:
-
ANDROID
public static final int ANDROID- Siehe auch:
-
GNU
public static final int GNU- Siehe auch:
-
KFREEBSD
public static final int KFREEBSD- Siehe auch:
-
NETBSD
public static final int NETBSD- Siehe auch:
-
DRAGONFLYBSD
public static final int DRAGONFLYBSD- Siehe auch:
-
RO_FIELDS
public static final boolean RO_FIELDSWhether read-only (final) fields within Structures are supported. -
HAS_BUFFERS
public static final boolean HAS_BUFFERSWhether this platform provides NIO Buffers. -
HAS_AWT
public static final boolean HAS_AWTWhether this platform provides the AWT Component class; also false if running headless. -
HAS_JAWT
public static final boolean HAS_JAWTWhether this platform supports the JAWT library. -
MATH_LIBRARY_NAME
Canonical name of this platform's math library. -
C_LIBRARY_NAME
Canonical name of this platform's C runtime library. -
HAS_DLL_CALLBACKS
public static final boolean HAS_DLL_CALLBACKSWhether in-DLL callbacks are supported. -
RESOURCE_PREFIX
Canonical resource prefix for the current platform. This value is used to load bundled native libraries from the class path. -
ARCH
Current platform architecture.
-
-
Methodendetails
-
getOSType
public static final int getOSType() -
isMac
public static final boolean isMac() -
isAndroid
public static final boolean isAndroid() -
isLinux
public static final boolean isLinux() -
isAIX
public static final boolean isAIX() -
isWindowsCE
public static final boolean isWindowsCE() -
isWindows
public static final boolean isWindows()Returns true for any windows variant. -
isSolaris
public static final boolean isSolaris() -
isDragonFlyBSD
public static final boolean isDragonFlyBSD() -
isFreeBSD
public static final boolean isFreeBSD() -
isOpenBSD
public static final boolean isOpenBSD() -
isNetBSD
public static final boolean isNetBSD() -
isGNU
public static final boolean isGNU() -
iskFreeBSD
public static final boolean iskFreeBSD() -
isX11
public static final boolean isX11() -
hasRuntimeExec
public static final boolean hasRuntimeExec() -
is64Bit
public static final boolean is64Bit() -
isIntel
public static final boolean isIntel() -
isPPC
public static final boolean isPPC() -
isARM
public static final boolean isARM() -
isSPARC
public static final boolean isSPARC() -
isMIPS
public static final boolean isMIPS() -
isLoongArch
public static final boolean isLoongArch() -
getCanonicalArchitecture
-
isSoftFloat
static boolean isSoftFloat() -
getNativeLibraryResourcePrefix
Generate a canonical String prefix based on the current OS type/arch/name. -
getNativeLibraryResourcePrefix
Generate a canonical String prefix based on the given OS type/arch/name.- Parameter:
osType
- fromgetOSType()
arch
- fromos.arch
System propertyname
- fromos.name
System property
-