code: public InputStream inputWrap(InputStream is) 
      throws IOException {
          logger.fine(Thread.currentThread().getName() + " wrapping input");
          
          // discard any state from previously-recorded input
          this.characterEncoding = null;
          this.inputIsChunked = false;
          this.contentEncoding = null; 
          
          this.ris.open(is);
          return this.ris;
      }
docs: Wrap the provided stream with the internal RecordingInputStream
  
  open() throws an exception if RecordingInputStream is already open.
  
  @param is InputStream to wrap.
  
  @return The input stream wrapper which itself is an input stream.
  Pass this in place of the passed stream so input can be recorded.
  
  @throws IOException