Get .tsv file from an archive in java without unzipping the archive : <p>I have an archive <code>_2016_08_17.zip</code> that contains 8 .tsv files. I need to extract the file named <code>hit_data.tsv</code> and upload it to bigquery. The files are in a bucket on the google cloud platform.</p>

<p>Can someone give me a simple program that opens the archive, finds the correct file and then prints its rows to screen. I can take it from there. My idea is to replace the path <code>gs://path_name/*hit_data.tsv</code> with the buffer that contains the <code>hit_data.tsv</code> data.</p>

<pre><code>    public static void main(String[] args) {
    Pipeline p = DataflowUtils.createFromArgs(args);

    p
            .apply(TextIO.Read.from("gs://path_name/*hit_data.tsv"))  
             \\.apply(Sample.&lt;String&gt;any(10))  
            .apply(ParDo.named("ExtractRows").of(new ExtractRows('\t', "InformationDateID")))
            .apply(BigQueryIO.Write
                    .named("BQWrite")
                    .to(BigQuery.getTableReference("ddm_now_apps", true))
                    .withSchema(getSchema())
                    .withWriteDisposition(BigQueryIO.Write.WriteDisposition.WRITE_APPEND)
                    .withCreateDisposition(BigQueryIO.Write.CreateDisposition.CREATE_IF_NEEDED));

    p.run();
}
</code></pre>
