|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjnr.ffi.Platform
public abstract class Platform
| Nested Class Summary | |
|---|---|
static class |
Platform.CPU
The supported CPU architectures. |
static class |
Platform.OS
The common names of supported operating systems. |
| Field Summary | |
|---|---|
protected Pattern |
libPattern
|
| Constructor Summary | |
|---|---|
Platform(Platform.OS os,
Platform.CPU cpu,
int addressSize,
int longSize,
String libPattern)
|
|
| Method Summary | |
|---|---|
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. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Pattern libPattern
| Constructor Detail |
|---|
public Platform(Platform.OS os,
Platform.CPU cpu,
int addressSize,
int longSize,
String libPattern)
| Method Detail |
|---|
public static final Platform getNativePlatform()
@Deprecated public static final 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 mapLibraryName(String libName)
libName - The library name to map
public String locateLibrary(String libName,
List<String> libraryPath)
libName - the base name (e.g. "c") of the library to locatelibraryPath - the list of directories to search
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||