public static String getGzipStreamContents(InputStream is) throws IOException {
        Preconditions.checkNotNull(is, "Cannot get String from a null object");
        final GZIPInputStream gis = new GZIPInputStream(is);
        return getStreamContents(gis);
    }
public static String getGzipStreamContents ( InputStream is ) throws IOException { Preconditions . checkNotNull ( is , "Cannot get String from a null object" ) ; final GZIPInputStream gis = new GZIPInputStream ( is ) ; return getStreamContents ( gis ) ; }
Return String content from a gzip stream

@param is input stream
@return string contents
@throws java.io.IOException in any. SocketTimeout in example