Class LibraryExtractor

All Implemented Interfaces:
OutputStreamProvider, StreamProvider, AutoCloseable

public class LibraryExtractor extends ConcurrentFileExtractor
Represents a thread-safe dynamic library (.so, .dll, .dylib) extractor based on the FileExtractor.
  • 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 routines
      libraryPath - the path of the library inside the compression filesystem
      destination - 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

      public LibraryExtractor(String libraryPath, String destination)
      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 filesystem
      destination - the extraction destination filesystem path