public abstract class BaseJniExtractor extends Object implements JniExtractor
| Constructor and Description |
|---|
BaseJniExtractor() |
BaseJniExtractor(Class<?> libraryJarClass) |
| Modifier and Type | Method and Description |
|---|---|
File |
extractJni(String libPath,
String libname)
Extract a JNI library from the classpath to a temporary file.
|
void |
extractRegistered()
Extract all libraries which are registered for auto-extraction to files in
the temporary directory.
|
abstract File |
getJniDir()
this is where JNI libraries are extracted to (e.g.
|
abstract File |
getNativeDir()
this is where native dependencies are extracted to (e.g.
|
public BaseJniExtractor()
throws IOException
IOExceptionpublic BaseJniExtractor(Class<?> libraryJarClass) throws IOException
IOExceptionpublic abstract File getNativeDir()
public abstract File getJniDir()
public File extractJni(String libPath, String libname) throws IOException
extractJni in interface JniExtractorlibPath - library pathlibname - System.loadLibrary() compatible library nameIOExceptionpublic void extractRegistered()
throws IOException
extractRegistered in interface JniExtractorIOExceptionCopyright © 2010–2017 SciJava. All rights reserved.