static void produceInputStreamWithEntry( final DataConsumer consumer,
                                             final InputStream inputStream,
                                             final TarArchiveEntry entry ) throws IOException {
        try {
            consumer.onEachFile(inputStream, entry);
        } finally {
            IOUtils.closeQuietly(inputStream);
        }
    }
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.
@param consumer the consumer
@param inputStream the stream to feed
@param entry the entry to use for metadata
@throws IOException on consume error