public static long gunzip ( InputStream in , OutputStream out ) throws IOException { try ( GZIPInputStream gzipInputStream = gzipInputStream ( in ) ) { final long result = ByteStreams . copy ( gzipInputStream , out ) ; out . flush ( ) ; return result ; } finally { out . close ( ) ; } }
gunzip from the source stream to the destination stream .