|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kenai.jffi.Library
public final class Library
Represents a native library
| Field Summary | |
|---|---|
static int |
GLOBAL
All symbols in the library are made available to other libraries |
static int |
LAZY
Perform lazy binding. |
static int |
LOCAL
Symbols in this library are not made available to other libraries |
static int |
NOW
Resolve all symbols when loading the library |
| Method Summary | |
|---|---|
protected void |
finalize()
|
static Library |
getCachedInstance(String name,
int flags)
Gets a handle for the named library. |
static Library |
getDefault()
Gets a handle to the default library. |
static String |
getLastError()
Gets the current error string from dlopen/LoadLibrary. |
long |
getSymbolAddress(String name)
Gets the address of a symbol within the Library. |
static Library |
openLibrary(String name,
int flags)
Gets a handle for the named library. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int LAZY
public static final int NOW
public static final int LOCAL
public static final int GLOBAL
| Method Detail |
|---|
public static final Library getDefault()
public static final Library getCachedInstance(String name,
int flags)
name - The name or path of the library to open.flags - The library flags (e.g. LAZY, NOW, LOCAL, GLOBAL)
public static final Library openLibrary(String name,
int flags)
name - The name or path of the library to open.flags - The library flags (e.g. LAZY, NOW, LOCAL, GLOBAL)
public final long getSymbolAddress(String name)
name - The name of the symbol to locate.
public static final String getLastError()
protected void finalize()
throws Throwable
finalize in class ObjectThrowable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||