Class LibraryExtractor
java.lang.Object
electrostatic4j.snaploader.filesystem.FileExtractor
electrostatic4j.snaploader.filesystem.ConcurrentFileExtractor
electrostatic4j.snaploader.library.LibraryExtractor
- All Implemented Interfaces:
OutputStreamProvider,StreamProvider,AutoCloseable
Represents a thread-safe dynamic library (.so, .dll, .dylib) extractor based on the
FileExtractor.-
Field Summary
Fields inherited from class electrostatic4j.snaploader.filesystem.ConcurrentFileExtractor
lockFields inherited from class electrostatic4j.snaploader.filesystem.FileExtractor
destination, fileExtractionListener, fileLocator, fileOutputStream -
Constructor Summary
ConstructorsConstructorDescriptionLibraryExtractor(String libraryPath, String destination) Instantiates a native dynamic library extractor with a library path and an extract destination filesystem path.LibraryExtractor(ZipFile compression, String libraryPath, String destination) Instantiates a native dynamic library extractor for an external compression file locator routine. -
Method Summary
Methods inherited from class electrostatic4j.snaploader.filesystem.ConcurrentFileExtractor
extractMethods inherited from class electrostatic4j.snaploader.filesystem.FileExtractor
close, getFileLocator, getFileOutputStream, initialize, setExtractionListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface electrostatic4j.snaploader.filesystem.StreamProvider
getHashKey
-
Constructor Details
-
LibraryExtractor
public LibraryExtractor(ZipFile compression, String libraryPath, String destination) throws IOException Instantiates a native dynamic library extractor for an external compression file locator routine.- Parameters:
compression- the zip file object for external locator routineslibraryPath- the path of the library inside the compression filesystemdestination- the extraction destination filesystem path- Throws:
IOException- if the jar filesystem to be located is not found, or if the extraction destination is not found
-
LibraryExtractor
Instantiates a native dynamic library extractor with a library path and an extract destination filesystem path. This object locates a dynamic native library inside the stock jar filesystem based on a classpath input stream (i.e., classpath file locator routine).- Parameters:
libraryPath- the path of the library inside the jar filesystemdestination- the extraction destination filesystem path
-