MCPcopy Index your code
hub / github.com/apache/groovy / mark

Method mark

src/main/java/groovy/io/LineColumnReader.java:74–79  ·  view source on GitHub ↗

Marks the present position in the stream. Subsequent calls to reset() will attempt to reposition the stream to this point. @param readAheadLimit Limit on the number of characters that may be read while still preserving the mark. An attempt to reset the stream after reading characters up to th

(int readAheadLimit)

Source from the content-addressed store, hash-verified

72 * Therefore large values should be used with care.
73 */
74 @Override
75 public void mark(int readAheadLimit) throws IOException {
76 lineMark = line;
77 columnMark = column;
78 super.mark(readAheadLimit);
79 }
80
81 /**
82 * Resets the stream to the most recent mark.

Callers 6

readMethod · 0.95
nextTokenMethod · 0.45
skipWhitespaceMethod · 0.45
handleEscapingMethod · 0.45
parseMethod · 0.45
testMarkAndResetMethod · 0.45

Calls

no outgoing calls

Tested by 1

testMarkAndResetMethod · 0.36