code: private void reset(boolean skipBuffer) { // expected diff with AnsiOutputStream.java
          if (!skipBuffer) {
              ps.write(buffer, 0, pos); // expected diff with AnsiOutputStream.java
          }
          pos = 0;
          startOfValue = 0;
          options.clear();
          state = LOOKING_FOR_FIRST_ESC_CHAR;
      }
docs: Resets all state to continue with regular parsing
  @param skipBuffer if current buffer should be skipped or written to out