MCPcopy Create free account
hub / github.com/apache/tomcat / reset

Method reset

java/org/apache/catalina/connector/InputBuffer.java:573–591  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

571
572
573 @Override
574 public void reset() throws IOException {
575
576 throwIfClosed();
577
578 if (state == CHAR_STATE) {
579 if (markPos < 0) {
580 clear(cb);
581 markPos = -1;
582 IOException ioe = new IOException();
583 coyoteRequest.setErrorException(ioe);
584 throw ioe;
585 } else {
586 cb.position(markPos);
587 }
588 } else {
589 clear(bb);
590 }
591 }
592
593
594 private void throwIfClosed() throws IOException {

Callers

nothing calls this directly

Calls 4

throwIfClosedMethod · 0.95
clearMethod · 0.95
positionMethod · 0.80
setErrorExceptionMethod · 0.45

Tested by

no test coverage detected