public class Platform extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Platform.CPUFamily |
static class |
Platform.CPUType |
static class |
Platform.OSType |
Modifier and Type | Field and Description |
---|---|
static String |
ARCH |
static String |
ARCH_lower |
static Platform.CPUType |
CPU_ARCH |
static String |
JAVA_RUNTIME_NAME |
static boolean |
JAVA_SE |
static String |
JAVA_VENDOR |
static String |
JAVA_VENDOR_URL |
static String |
JAVA_VERSION |
static String |
JAVA_VM_NAME |
static boolean |
LITTLE_ENDIAN |
static String |
NEWLINE |
static String |
OS |
static String |
OS_lower |
static Platform.OSType |
OS_TYPE |
static String |
OS_VERSION |
static boolean |
USE_TEMP_JAR_CACHE
System property: 'jogamp.gluegen.UseTempJarCache',
defaults to true if
OS_TYPE is not Platform.OSType.ANDROID . |
Modifier and Type | Method and Description |
---|---|
static String |
getArchName()
Returns the CPU architecture String.
|
static Platform.CPUFamily |
getCPUFamily()
Returns the CPU type.
|
static Platform.CPUType |
getCPUType()
Returns the CPU architecture.
|
static String |
getJavaRuntimeName()
Returns the JAVA runtime name.
|
static String |
getJavaVendor()
Returns the JAVA.
|
static String |
getJavaVendorURL()
Returns the JAVA vendor url.
|
static String |
getJavaVersion()
Returns the JAVA vendor.
|
static String |
getJavaVMName()
Returns the JAVA VM name.
|
static MachineDescription |
getMachineDescription()
Returns the MachineDescription of the running machine.
|
static String |
getNewline()
Returns the JAVA vendor.
|
static String |
getOSAndArch()
Returns the GlueGen common name for the currently running OSType and CPUType
as implemented in the build system in 'gluegen-cpptasks-base.xml'.
|
static String |
getOSAndArch(Platform.OSType osType,
Platform.CPUType cpuType)
Returns the GlueGen common name for the given OSType and CPUType
as implemented in the build system in 'gluegen-cpptasks-base.xml'.
A list of currently supported os.and.arch strings:
freebsd-i586
freebsd-amd64
hpux-hppa
linux-amd64
linux-ia64
linux-i586
linux-armv7
android-armv7
macosx-universal
solaris-sparc
solaris-sparcv9
solaris-amd64
solaris-i586
windows-amd64
windows-i586
|
static String |
getOSName()
Returns the OS name.
|
static Platform.OSType |
getOSType()
Returns the OS type.
|
static String |
getOSVersion()
Returns the OS version.
|
static void |
initSingleton()
kick off static initialization incl native gluegen-rt lib loading
|
static boolean |
is32Bit()
Returns true if this JVM/ARCH is 32bit.
|
static boolean |
is64Bit()
Returns true if this JVM/ARCH is 64bit.
|
static boolean |
isJavaSE()
Returns true only if this program is running on the Java Standard Edition.
|
static boolean |
isLittleEndian()
Returns true if this machine is little endian, otherwise false.
|
public static final boolean USE_TEMP_JAR_CACHE
OS_TYPE
is not Platform.OSType.ANDROID
.public static final boolean JAVA_SE
public static final boolean LITTLE_ENDIAN
public static final String OS
public static final String OS_lower
public static final String OS_VERSION
public static final String ARCH
public static final String ARCH_lower
public static final String JAVA_VENDOR
public static final String JAVA_VENDOR_URL
public static final String JAVA_VM_NAME
public static final String JAVA_RUNTIME_NAME
public static final String JAVA_VERSION
public static final String NEWLINE
public static final Platform.OSType OS_TYPE
public static final Platform.CPUType CPU_ARCH
public static void initSingleton()
public static boolean isJavaSE()
public static boolean isLittleEndian()
public static String getOSName()
In case of Platform.OSType.ANDROID
, see getOSType()
, the OS name is Linux
public static String getOSVersion()
public static String getArchName()
public static Platform.OSType getOSType()
In case of Platform.OSType.ANDROID
the OS name, see getOSName()
, is Linux
public static Platform.CPUFamily getCPUFamily()
public static Platform.CPUType getCPUType()
public static String getOSAndArch()
getOSAndArch(OSType, CPUType)
public static String getOSAndArch(Platform.OSType osType, Platform.CPUType cpuType)
os.and.arch
strings:
public static String getJavaVendor()
public static String getJavaVMName()
public static String getJavaRuntimeName()
public static String getJavaVendorURL()
public static String getJavaVersion()
public static String getNewline()
public static boolean is32Bit()
Shortcut to getMachineDescription()
.is32Bit()
public static boolean is64Bit()
Shortcut to getMachineDescription()
.is64Bit()
public static MachineDescription getMachineDescription()