@Override public void run() { try { latch.countDown(); rarArchive.extractFile(header, pOut); } catch (final RarException e) { LOGGER.error("Unknown exception:", e); } finally { try { pOut.close(); } catch (final IOException e) { LOGGER.warn("Unknown exception closing reader.", e); } } } }
rarFile.extractFile(fileHeader, fileOut); fileOut.close();
System.out.println(out.getAbsolutePath()); FileOutputStream os = new FileOutputStream(out); a.extractFile(fh, os); os.close(); } catch (FileNotFoundException e) {