public abstract class Platform
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ARCH |
static int |
BIG_ENDIAN |
static int |
BIT_WIDTH |
static int |
BYTE_ORDER |
static boolean |
IS_BSD |
static boolean |
IS_DRAGONFLYBSD |
static boolean |
IS_FREEBSD |
static boolean |
IS_GCJ |
static boolean |
IS_IBM |
static boolean |
IS_J9 |
static boolean |
IS_LINUX |
static boolean |
IS_MAC |
static boolean |
IS_OPENBSD |
static boolean |
IS_OPENVMS |
static boolean |
IS_SOLARIS |
static boolean |
IS_WINDOWS |
static boolean |
IS_WSL |
static java.lang.String |
JVM |
static int |
LITTLE_ENDIAN |
static java.lang.String |
NAME |
static java.lang.String |
OS |
static java.lang.String |
OS_VERSION |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getOSPackageName() |
java.lang.String |
getPackageName() |
static java.lang.String |
getProperty(java.lang.String property,
java.lang.String defValue)
An extension over
System.getProperty method. |
public static final java.lang.String ARCH
public static final java.lang.String OS
public static final java.lang.String JVM
public static final java.lang.String OS_VERSION
public static final boolean IS_WINDOWS
public static final boolean IS_MAC
public static final boolean IS_FREEBSD
public static final boolean IS_DRAGONFLYBSD
public static final boolean IS_OPENBSD
public static final boolean IS_LINUX
public static final boolean IS_WSL
public static final boolean IS_SOLARIS
public static final boolean IS_BSD
public static final boolean IS_OPENVMS
public static final java.lang.String NAME
public static final int BIG_ENDIAN
public static final int LITTLE_ENDIAN
public static final int BYTE_ORDER
public static final int BIT_WIDTH
public static final boolean IS_GCJ
public static final boolean IS_J9
public static final boolean IS_IBM
public java.lang.String getPackageName()
public java.lang.String getOSPackageName()
public static java.lang.String getProperty(java.lang.String property,
java.lang.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 © 2001-2023 JRuby. All Rights Reserved.