public abstract class Platform extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Platform.CPU
The supported CPU architectures.
|
static class |
Platform.OS
The common names of supported operating systems.
|
Modifier and Type | Field and Description |
---|---|
protected Pattern |
libPattern |
Constructor and Description |
---|
Platform(Platform.OS os,
Platform.CPU cpu,
int addressSize,
int longSize,
String libPattern) |
Modifier and Type | Method and Description |
---|---|
int |
addressSize()
Deprecated.
Use
Runtime.addressSize() instead. |
Platform.CPU |
getCPU()
Gets the current processor architecture the JVM is running on.
|
String |
getName()
Gets the name of this Platform.
|
static Platform |
getNativePlatform()
Gets the native Platform
|
Platform.OS |
getOS()
Gets the current Operating System.
|
static Platform |
getPlatform()
Deprecated.
|
String |
getStandardCLibraryName()
Returns the platform specific standard C library name
|
boolean |
isBSD() |
boolean |
isUnix() |
String |
locateLibrary(String libName,
List<String> libraryPath)
Searches through a list of directories for a native library.
|
int |
longSize()
Deprecated.
Use
Runtime.longSize() instead. |
String |
mapLibraryName(String libName)
Maps from a generic library name (e.g.
|
protected final Pattern libPattern
public Platform(Platform.OS os, Platform.CPU cpu, int addressSize, int longSize, String libPattern)
public static Platform getNativePlatform()
@Deprecated public static Platform getPlatform()
public final Platform.OS getOS()
public final Platform.CPU getCPU()
public final boolean isBSD()
public final boolean isUnix()
public final int longSize()
Runtime.longSize()
instead.public final int addressSize()
Runtime.addressSize()
instead.public String getName()
public String getStandardCLibraryName()
public String mapLibraryName(String libName)
libName
- The library name to mapCopyright © 2017. All rights reserved.