code: public InputStream getInputStream() {
          if (m_requestEntity.length == 0) {
              return null;
          }
          ByteArrayInputStream bis = new ByteArrayInputStream(m_requestEntity);
          InputStream inStream = bis;
          if (m_bEntityCompressed) {
              try {
                  inStream = new GZIPInputStream(bis);
              } catch (IOException e) {
                  throw new IllegalArgumentException("Error decompressing input: " + e.toString());
              }
          }
          return inStream;
      }
docs: Get the input entity (body) of this REST request as an InputStream. If no input
  entity was provided, null is returned. If an input entity is present and is
  compressed, the stream returned is the decompressed byte stream.
  
  @return  The input entity (body) of this REST request as an InputStream, returning
  decompressed bytes if necessary. Null is returned if there is no input
  stream.