public abstract class Platform extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ARCH |
static Map<String,String> |
ARCH_NAMES |
static int |
BIG_ENDIAN |
static int |
BYTE_ORDER |
static boolean |
IS_BSD |
static boolean |
IS_FREEBSD |
static boolean |
IS_GCJ |
static boolean |
IS_IBM |
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 String |
JVM |
static int |
LITTLE_ENDIAN |
static String |
NAME |
static String |
OS |
static Map<String,String> |
OS_NAMES |
Modifier | Constructor and Description |
---|---|
protected |
Platform() |
Modifier and Type | Method and Description |
---|---|
abstract long[] |
getGroups(IRubyObject recv) |
String |
getOSPackageName() |
String |
getPackageName() |
static Platform |
getPlatform() |
static String |
getProperty(String property,
String defValue)
An extension over
System.getProperty method. |
static void |
main(String[] args) |
public static final String ARCH
public static final String OS
public static final String JVM
public static final boolean IS_WINDOWS
public static final boolean IS_MAC
public static final boolean IS_FREEBSD
public static final boolean IS_OPENBSD
public static final boolean IS_LINUX
public static final boolean IS_SOLARIS
public static final boolean IS_BSD
public static final boolean IS_OPENVMS
public static final String NAME
public static final int BIG_ENDIAN
public static final int LITTLE_ENDIAN
public static final int BYTE_ORDER
public static final boolean IS_GCJ
public static final boolean IS_IBM
public static Platform getPlatform()
public static void main(String[] args)
public String getPackageName()
public String getOSPackageName()
public static String getProperty(String property, 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.public abstract long[] getGroups(IRubyObject recv)
Copyright © 2001-2015 JRuby. All Rights Reserved.