Compare commits

..

No commits in common. '9f94469ff15a90692c80af7780edfab28dbc546b' and '4ddb56e211ec894a09d2e634b230e3000e175a72' have entirely different histories.

  1. 24
      src/main/java/me/bearns/fias/helpers/UpdaterImpl.java

@ -135,37 +135,19 @@ public class UpdaterImpl implements UpdateHelper {
}
}
/* map.forEach(ThrowingBiConsumer.unchecked((config, entry) -> {
map.forEach((config, entry) -> {
try (InputStream is = zipFile.getInputStream(entry)) {
log.debug("Process '{}' in zip", entry.getName());
unmarshaller.process(is, config, filter);
}
}));*/
for (Map.Entry<UnmarshallerParameters, ZipArchiveEntry> next : map.entrySet()) {
final UnmarshallerParameters config = next.getKey();
final ZipArchiveEntry entry = next.getValue();
try (InputStream is = zipFile.getInputStream(entry)) {
log.debug("Process '{}' in zip", entry.getName());
unmarshaller.process(is, config, filter);
}
}
});
log.debug("Completed Zip file");
} catch (IOException e) {
log.error("IO Unzip Exception");
throw new UnzipException(e);
} /*catch (RuntimeException e) {
final Throwable cause = e.getCause();
if(cause instanceof CommonException) {
log.error("Probably unmarshalling exception");
throw (CommonException) cause;
} else {
log.error("Unknown exception occured");
}
}*/
}
}
}

Loading…
Cancel
Save