Package com.apple.foundationdb
Class JNIUtil
- java.lang.Object
-
- com.apple.foundationdb.JNIUtil
-
public class JNIUtil extends java.lang.ObjectUtility for loading a dynamic library from the classpath.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.io.FileexportLibrary(java.lang.String libName)Export a library from classpath resources to a temporary file.
-
-
-
Method Detail
-
exportLibrary
public static java.io.File exportLibrary(java.lang.String libName) throws java.io.IOExceptionExport a library from classpath resources to a temporary file.- Parameters:
libName- the name of the library to attempt to export. This name should be undecorated with file extensions and, in the case of *nix, "lib" prefixes.- Returns:
- the exported temporary file
- Throws:
java.io.IOException- becauseFile
-
-