public class GenomicsDBUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
private static String |
mGenomicsDBLibraryName |
private static boolean |
mIsLibraryLoaded |
| Constructor and Description |
|---|
GenomicsDBUtils() |
| Modifier and Type | Method and Description |
|---|---|
private static int |
jniGenomicsDBOneTimeInitialize() |
static boolean |
loadLibrary() |
static void |
loadLibraryFromJar(String path)
Loads library from current JAR archive
The file from JAR is copied into system temporary directory and then loaded.
|
private static final String mGenomicsDBLibraryName
private static boolean mIsLibraryLoaded
private static int jniGenomicsDBOneTimeInitialize()
public static boolean loadLibrary()
public static void loadLibraryFromJar(String path) throws IOException
path - The filename inside JAR as absolute path (beginning with '/'), e.g. /package/File.extIOException - If temporary file creation or read/write operation failsIllegalArgumentException - If source file (param path) does not existIllegalArgumentException - If the path is not absolute or if the filename is shorter than three characters (restriction of @see File#createTempFile(java.lang.String, java.lang.String)).Copyright © 2017. All rights reserved.