Class LibraryLocator
java.lang.Object
electrostatic4j.snaploader.filesystem.FileLocator
electrostatic4j.snaploader.library.LibraryLocator
- All Implemented Interfaces:
InputStreamProvider,StreamProvider,ZipStreamProvider,AutoCloseable
Locates a library inside a jar filesystem, the probable source for the native dynamic libraries to extract and load.
-
Field Summary
Fields inherited from class electrostatic4j.snaploader.filesystem.FileLocator
compression, fileInputStream, fileLocalizingListener, filePath -
Constructor Summary
ConstructorsConstructorDescriptionLibraryLocator(String libraryPath) Locates the library inside the stock jar filesystem.LibraryLocator(ZipFile compression, String filePath) -
Method Summary
Methods inherited from class electrostatic4j.snaploader.filesystem.FileLocator
classPathRoutine, close, externalCompressionRoutine, getCompression, getFileInputStream, initialize, setFileLocalizingListenerMethods 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
-
LibraryLocator
Locates the library inside the stock jar filesystem.- Parameters:
libraryPath- the path to the dynamic native library inside that jar filesystem
-
LibraryLocator
Locates a library inside an external jar, the external jar is defined by the means of aZipFileand the native library is defined as aZipEntry.- Throws:
IOException- if the jar to be located is not found or an interrupt I/O operation has occurred.
-