Package com.avpkit.ferry
Class JNILibrary
- java.lang.Object
-
- com.avpkit.ferry.JNILibrary
-
- All Implemented Interfaces:
java.lang.Comparable<JNILibrary>
public class JNILibrary extends java.lang.Object implements java.lang.Comparable<JNILibrary>
-
-
Constructor Summary
Constructors Constructor Description JNILibrary(java.lang.String name, java.lang.Long version)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(JNILibrary o)java.lang.StringgetName()java.lang.LonggetVersion()booleanisLoadAttempted()booleanisLoadSuccessful()static voidload(java.lang.String appname, JNILibrary library)Load the given library into the given application.java.lang.StringtoString()
-
-
-
Constructor Detail
-
JNILibrary
public JNILibrary(java.lang.String name, java.lang.Long version)
-
-
Method Detail
-
getName
public java.lang.String getName()
-
getVersion
public java.lang.Long getVersion()
-
isLoadAttempted
public boolean isLoadAttempted()
-
isLoadSuccessful
public boolean isLoadSuccessful()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
load
public static void load(java.lang.String appname, JNILibrary library)
Load the given library into the given application. This method first searches in the classpath for native libraries that are bundled in there, and only if no matches are found, will it search the run-time paths of each OS.- Parameters:
appname- the name of the application. This should match what shows up in jar manifests or avpkit native property files.library- the library object- Throws:
java.lang.UnsatisfiedLinkError- if library cannot be loaded.
-
compareTo
public int compareTo(JNILibrary o)
- Specified by:
compareToin interfacejava.lang.Comparable<JNILibrary>
-
-