()
| 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 { |
nothing calls this directly
no test coverage detected