Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while ((entry = zis.getNextEntry()) != null) {
- String fileName = entry.getName();
- SettingsItem item = null;
- for (SettingsItem settingsItem : items) {
- if (settingsItem != null && settingsItem.getFileName().equals(fileName)
- && (collecting && settingsItem.shouldReadOnCollecting()
- || !collecting && !settingsItem.shouldReadOnCollecting())) {
- item = settingsItem;
- break;
- }
- }
- if (item != null) {
- try {
- item.getReader().readFromStream(ois);
- } catch (IllegalArgumentException e) {
- LOG.error("Error reading item data: " + item.getName(), e);
- } catch (IOException e) {
- LOG.error("Error reading item data: " + item.getName(), e);
- } finally {
- zis.closeEntry();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement