org.scijava.nativelib
Interface JniExtractor

All Known Implementing Classes:
BaseJniExtractor, DefaultJniExtractor, WebappJniExtractor

public interface JniExtractor

Author:
Richard van der Hoff

Method Summary
 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.
 

Method Detail

extractJni

File extractJni(String libPath,
                String libname)
                throws IOException
Extract a JNI library from the classpath to a temporary file.

Parameters:
libPath - library path
libname - System.loadLibrary() compatible library name
Returns:
the extracted file
Throws:
IOException

extractRegistered

void extractRegistered()
                       throws IOException
Extract all libraries which are registered for auto-extraction to files in the temporary directory.

Throws:
IOException


Copyright © 2010–2014 SciJava. All rights reserved.