public class PlatformDetector extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ARCH_PPC |
static String |
ARCH_SPARC |
static String |
ARCH_X86_32 |
static String |
ARCH_X86_64 |
static String |
OS_LINUX |
static String |
OS_OSX |
static String |
OS_SOLARIS |
static String |
OS_WINDOWS |
Constructor and Description |
---|
PlatformDetector() |
Modifier and Type | Method and Description |
---|---|
String |
getArch()
Get the platform architecture.
|
String |
getByteOrder()
Get the byte order.
|
String[] |
getChmodCmd()
Get the chmod (change permissions) command for the current
platform (if one is necessary).
|
String |
getExecutableSuffix()
Get the file suffix used for executable files on the currently configured
platform.
|
String |
getOs()
Get the operating system.
|
String |
getPlatformId()
|
void |
setArch(String aArch)
Override the architecture.
|
void |
setByteOrder(ByteOrder aByteOrder)
Set the byte order.
|
void |
setOs(String aOs)
Override the operating system name.
|
void |
updatePlatform(String aOs,
String aArch,
ByteOrder aByteOrder)
Updates the platform-specific settings and normalizes them.
|
public static String OS_WINDOWS
public static String OS_OSX
public static String OS_SOLARIS
public static String OS_LINUX
public static String ARCH_PPC
public static String ARCH_X86_32
public static String ARCH_X86_64
public static String ARCH_SPARC
public void setOs(String aOs)
aOs
- an OS name as could be found in the os.name system
property.public String getOs()
public void setArch(String aArch)
aArch
- "big-endian" for PowerPC or Sparc systems or
"little-endian" for x86 systems.public String getArch()
public void setByteOrder(ByteOrder aByteOrder)
aByteOrder
- the byte order.public String getExecutableSuffix()
public String getByteOrder()
public String getPlatformId()
public void updatePlatform(String aOs, String aArch, ByteOrder aByteOrder)
aOs
- the operating system string.aArch
- the architecture string.aByteOrder
- the byte-order string.public String[] getChmodCmd()
Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.