code: protected String printBuffer() {
          String javaStr = new String(input.getBuffer());
          javaStr = javaStr.replaceAll("\\r", "\\\\r");
          javaStr = javaStr.replaceAll("\\n", "\\\\n");
          return javaStr;
      }
docs: An internal helper function that converts the input buffer into a
  printable <code>String</code>.
  
  @return the input buffer as a printable <code>String</code>