public final class NativeLibraryLoader
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.io.File |
getResource(java.lang.ClassLoader loader,
java.lang.String name)
Locate a system resource, using a given class loader.
|
static void |
loadLibrary(java.lang.ClassLoader loader,
java.lang.String libname)
Load a system library, using a given class loader to locate the library.
|
public static void loadLibrary(java.lang.ClassLoader loader, java.lang.String libname)
loader
- a class loader; may be nulllibname
- the library name; how this name is mapped to a system
library name is system dependentpublic static java.io.File getResource(java.lang.ClassLoader loader, java.lang.String name)
loader
- a class loader; may be nullname
- a resource name (that is, the name of a file)