Skip to content

Commit a9c5fbf

Browse files
committed
NativeBinaryLoader: applied API changes
1 parent f19ebc2 commit a9c5fbf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

snaploader/src/main/java/electrostatic4j/snaploader/NativeBinaryLoader.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public NativeBinaryLoader initPlatformLibrary() throws UnSupportedSystemError {
152152
* @return this instance for chained invocations
153153
* @throws IOException if the library to extract is not present in the jar filesystem
154154
*/
155-
public NativeBinaryLoader loadLibrary(LoadingCriterion criterion) throws IOException {
155+
public NativeBinaryLoader loadLibrary(LoadingCriterion criterion) throws Exception {
156156
if (criterion == LoadingCriterion.INCREMENTAL_LOADING && nativeDynamicLibrary.isExtracted()) {
157157
loadBinary(nativeDynamicLibrary);
158158
return this;
@@ -240,7 +240,7 @@ public FileLocalizingListener getLibraryLocalizingListener() {
240240
* @param library the platform-specific library to load
241241
* @throws IOException in case the binary to be extracted is not found on the specified jar
242242
*/
243-
protected void loadBinary(NativeDynamicLibrary library) throws IOException {
243+
protected void loadBinary(NativeDynamicLibrary library) throws Exception {
244244
try {
245245
/* sanity-check for android java vm (the dalvik) */
246246
if (NativeVariant.Os.isAndroid()) {
@@ -278,7 +278,7 @@ protected void loadBinary(NativeDynamicLibrary library) throws IOException {
278278
* @throws IOException in case the binary to be extracted is not found on the specified jar, or an
279279
* interrupted I/O operation has occurred
280280
*/
281-
protected void cleanExtractBinary(NativeDynamicLibrary library) throws IOException {
281+
protected void cleanExtractBinary(NativeDynamicLibrary library) throws Exception {
282282
libraryExtractor = initializeLibraryExtractor(library);
283283
SnapLoaderLogger.log(Level.INFO, getClass().getName(), "cleanExtractBinary",
284284
"File extractor handler initialized!");
@@ -346,7 +346,7 @@ public void onExtractionFinalization(FileExtractor fileExtractor, FileLocator fi
346346
* @return a new FileExtractor object that represents an output stream provider
347347
* @throws IOException if the jar filesystem to be located is not found, or if the extraction destination is not found
348348
*/
349-
protected FileExtractor initializeLibraryExtractor(NativeDynamicLibrary library) throws IOException {
349+
protected FileExtractor initializeLibraryExtractor(NativeDynamicLibrary library) throws Exception {
350350
FileExtractor extractor;
351351
if (library.getJarPath() != null) {
352352
extractor = new LibraryExtractor(library.getJarPath(), library.getCompressedLibrary(), library.getExtractedLibrary());

0 commit comments

Comments
 (0)