code: static void produceInputStreamWithEntry( final DataConsumer consumer,
                                               final InputStream inputStream,
                                               final TarArchiveEntry entry ) throws IOException {
          try {
              consumer.onEachFile(inputStream, entry);
          } finally {
              IOUtils.closeQuietly(inputStream);
          }
      }
docs: 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