code: public InputStream getContentReplayInputStream() throws IOException {
          InputStream entityStream = getEntityReplayInputStream();
          if(StringUtils.isEmpty(contentEncoding)) {
              return entityStream;
          } else if ("gzip".equalsIgnoreCase(contentEncoding) || "x-gzip".equalsIgnoreCase(contentEncoding)) {
              try {
                  return new GZIPInputStream(entityStream);
              } catch (IOException ioe) {
                  logger.log(Level.WARNING,"gzip problem; using raw entity instead",ioe);
                  IOUtils.closeQuietly(entityStream); // close partially-read stream
                  return getEntityReplayInputStream(); 
              }
          } else if ("deflate".equalsIgnoreCase(contentEncoding)) {
              return new DeflaterInputStream(entityStream);
          } else if ("identity".equalsIgnoreCase(contentEncoding) || "none".equalsIgnoreCase(contentEncoding)) {
              return entityStream;
          } else {
              // shouldn't be reached given check on setContentEncoding
              logger.log(Level.INFO,"Unknown content-encoding '"+contentEncoding+"' declared; using raw entity instead");
              return entityStream; 
          }
      }
docs: Get a replay cued up for the 'content' (after all leading headers)
  
  @return A replay input stream.
  @throws IOException