Package com.scurrilous.circe.utils
Class NativeUtils
- java.lang.Object
-
- com.scurrilous.circe.utils.NativeUtils
-
public class NativeUtils extends java.lang.ObjectUtils for loading native checksum library.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringOS_NAME
-
Constructor Summary
Constructors Constructor Description NativeUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringlibType()Returns jni library extension based on OS specification.static voidloadLibraryFromJar(java.lang.String path)loads given library from the this jar.
-
-
-
Method Detail
-
loadLibraryFromJar
public static void loadLibraryFromJar(java.lang.String path) throws java.lang.Exceptionloads given library from the this jar. ie: this jar contains: /lib/pulsar-checksum.jnilib- Parameters:
path- : absolute path of the library in the jar
if this jar contains: /lib/pulsar-checksum.jnilib then provide the same absolute path as input- Throws:
java.lang.Exception
-
libType
public static java.lang.String libType()
Returns jni library extension based on OS specification. Maven-nar generates jni library based on different OS : http://mark.donszelmann.org/maven-nar-plugin/aol.html (jni.extension)- Returns:
-
-