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

Method mark

java/org/apache/catalina/connector/InputBuffer.java:555–570  ·  view source on GitHub ↗
(int readAheadLimit)

Source from the content-addressed store, hash-verified

553
554
555 @Override
556 public void mark(int readAheadLimit) throws IOException {
557
558 throwIfClosed();
559
560 if (cb.remaining() <= 0) {
561 clear(cb);
562 } else {
563 if ((cb.capacity() > (2 * size)) && (cb.remaining()) < (cb.position())) {
564 cb.compact();
565 cb.flip();
566 }
567 }
568 readLimit = cb.position() + readAheadLimit + size;
569 markPos = cb.position();
570 }
571
572
573 @Override

Callers 4

willDecodeMethod · 0.45
expandMethod · 0.45
toWriteModeMethod · 0.45
processBomMethod · 0.45

Calls 5

throwIfClosedMethod · 0.95
clearMethod · 0.95
remainingMethod · 0.80
positionMethod · 0.80
flipMethod · 0.80

Tested by 1

willDecodeMethod · 0.36