static public byte [ ] unzip ( InputStream in ) throws IOException { ByteArrayOutputStream bos = new ByteArrayOutputStream ( ) ; CopyUtil . copy ( new GZIPInputStream ( in ) , bos ) ; return bos . toByteArray ( ) ; }
Returns the unzipped contents of the zipped input stream in a byte array