is = jar.getInputStream(ja); try { task.on(entry, is); } catch (Exception e) { logger.log(Level.SEVERE, "Exception while processing " + ja.getName()
task.on(je, bais); } finally { bais.close();
task.on(je, bais); } finally { bais.close();
is = jar.getInputStream(ja); try { task.on(entry, is); } catch (Exception e) { logger.log(Level.SEVERE, "Exception while processing " + ja.getName()
try { is = new FileInputStream(f); task.on(ae, is); } catch(Exception e) { logger.log(Level.SEVERE, "Exception while processing " + f.getName() +
try { is = new FileInputStream(f); task.on(ae, is); } catch(Exception e) { logger.log(Level.SEVERE, "Exception while processing " + f.getName() +
protected void handleEntry(String name, Entry entry, Logger logger /*ignored*/, EntryTask entryTask) throws IOException { InputStream is = null; try { try { is = archive.getEntry(name); if (is==null) { alogger.log(Level.SEVERE, KernelLoggerInfo.invalidInputStream, name); return; } entryTask.on(entry, is); } catch (Exception e) { alogger.log(Level.SEVERE, KernelLoggerInfo.exceptionWhileParsing, new Object[] { entry.name, archive.getURI(), entry.size, e}); } } finally { if (is!=null) is.close(); } }