Code example for GZIPInputStream

0
     */ 
    private static class InflatingEntity extends HttpEntityWrapper {
        public InflatingEntity(HttpEntity wrapped) {
            super(wrapped);
        } 
 
        @Override 
        public InputStream getContent() throws IOException {
            return new GZIPInputStream(wrappedEntity.getContent());
        } 
 
        @Override 
        public long getContentLength() { 
            return -1; 
        } 
    } 
 
    private interface Prefs { 
        String IOSCHED_SYNC = "iosched_sync";
        String LOCAL_VERSION = "local_version";
    }