|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.tagtraum.qtsampledsp.QTNativeLibraryLoader
public final class QTNativeLibraryLoader
First tries to load a library the default way using System.loadLibrary(String),
upon failure falls back to the base directory of the given class package or the jar the class
is in. This way, a native library is found, if it is located in the same directory as a particular jar, identified
by a specific class from that jar.
Date: Jun 27, 2007
Time: 4:29:23 PM
| Method Summary | |
|---|---|
static String |
findFile(String name,
Class baseClass,
FileFilter filter)
Finds a file that is either in the classpath or in the same directory as a given class's jar. |
static boolean |
loadLibrary()
Loads the QTSampledSP library. |
static void |
loadLibrary(String libName)
Loads a library. |
static void |
loadLibrary(String libName,
Class baseClass)
Loads a library. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean loadLibrary()
public static void loadLibrary(String libName)
libName - name of the library, as described in System.loadLibrary(String) );
public static void loadLibrary(String libName,
Class baseClass)
libName - name of the library, as described in System.loadLibrary(String) );baseClass - class that identifies the jar
public static String findFile(String name,
Class baseClass,
FileFilter filter)
throws FileNotFoundException
name - (partial) filenamebaseClass - base classfilter - filter that determines whether a file is a match
FileNotFoundException - if a matching file cannot be found
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||