Code example for GZIPInputStream

0
        if (null == is) {
            is = con.getInputStream();
        } 
        if (null != is && "gzip".equals(con.getContentEncoding())) {
            // the response is gzipped 
            is = new GZIPInputStream(is);
        } 
    } 
 
    // for test purposes 
    /*package*/ 
 
    protected Response() { } 
     
    public int getStatusCode() { 
        return statusCode;
    } 
 
    public String getResponseHeader(String name) {
        return con.getHeaderField(name);
    }