|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjnr.ffi.Library
LibraryLoader instead.
public final class Library
| Method Summary | ||
|---|---|---|
static void |
addLibraryPath(String libraryName,
File path)
Deprecated. see LibraryLoader for the preferred interface to loading libraries. |
|
static Library |
getInstance(String libraryName)
Deprecated. |
|
static List<String> |
getLibraryPath(String libraryName)
Deprecated. see LibraryLoader for the preferred interface to loading libraries. |
|
String |
getName()
Deprecated. |
|
static Runtime |
getRuntime(Object library)
Deprecated. Use Runtime.getRuntime(Object) |
|
static
|
loadLibrary(Class<T> interfaceClass,
Map<LibraryOption,?> libraryOptions,
String... libraryNames)
Deprecated. see LibraryLoader for the preferred interface to loading libraries. |
|
static
|
loadLibrary(Class<T> interfaceClass,
String... libraryNames)
Deprecated. see LibraryLoader for the preferred interface to loading libraries. |
|
static
|
loadLibrary(String libraryName,
Class<T> interfaceClass)
Deprecated. see LibraryLoader for the preferred interface to loading libraries. |
|
static
|
loadLibrary(String libraryName,
Class<T> interfaceClass,
Map<LibraryOption,?> libraryOptions)
Deprecated. see LibraryLoader for the preferred interface to loading libraries. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Runtime getRuntime(Object library)
Runtime.getRuntime(Object)
Runtime that loaded the library interface.
library - A library implementation as returned from LibraryLoader.load()
public static <T> T loadLibrary(String libraryName,
Class<T> interfaceClass)
LibraryLoader for the preferred interface to loading libraries.
interfaceClass
to native methods in the library.
libraryName - the name of the library to loadinterfaceClass - the interface that describes the native library interface
interfaceclass that will call the native methods.
public static <T> T loadLibrary(Class<T> interfaceClass,
String... libraryNames)
LibraryLoader for the preferred interface to loading libraries.
interfaceClass
to native methods in the library.
libraryNames - the name of the library to loadinterfaceClass - the interface that describes the native library interface
interfaceclass that will call the native methods.
public static <T> T loadLibrary(String libraryName,
Class<T> interfaceClass,
Map<LibraryOption,?> libraryOptions)
LibraryLoader for the preferred interface to loading libraries.
interfaceClass
to native methods in the library.
libraryName - the name of the library to loadinterfaceClass - the interface that describes the native library interfacelibraryOptions - options
interfaceclass that will call the native methods.
public static <T> T loadLibrary(Class<T> interfaceClass,
Map<LibraryOption,?> libraryOptions,
String... libraryNames)
LibraryLoader for the preferred interface to loading libraries.
interfaceClass
to native methods in the library.
libraryNames - the name of the library to loadinterfaceClass - the interface that describes the native library interfacelibraryOptions - options
interfaceclass that will call the native methods.
public static void addLibraryPath(String libraryName,
File path)
LibraryLoader for the preferred interface to loading libraries.
libraryName - the name of the library to search forpath - the path to search for the library inpublic static List<String> getLibraryPath(String libraryName)
LibraryLoader for the preferred interface to loading libraries.
libraryName - The library to retrieve the path for.
@Deprecated public static Library getInstance(String libraryName)
@Deprecated public String getName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||