|
||||||||||
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(java.lang.String name,
int flags)
Gets a handle for the named library. |
static Library |
getDefault()
Gets a handle to the default library. |
static java.lang.String |
getLastError()
Gets the current error string from dlopen/LoadLibrary. |
long |
getSymbolAddress(java.lang.String name)
Gets the address of a symbol within the Library. |
static Library |
openLibrary(java.lang.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(java.lang.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(java.lang.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(java.lang.String name)
name
- The name of the symbol to locate.
public static final java.lang.String getLastError()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |