static void produceInputStreamWithEntry ( final DataConsumer consumer , final InputStream inputStream , final TarArchiveEntry entry ) throws IOException { try { consumer . onEachFile ( inputStream , entry ) ; } finally { IOUtils . closeQuietly ( inputStream ) ; } }
Feeds input stream to data consumer using metadata from tar entry .