@Test public void mark() { CharacterReader r = new CharacterReader("one"); r.consume(); r.mark(); assertEquals('n', r.consume()); assertEquals('e', r.consume()); assertTrue(r.isEmpty()); r.rewindToMark(); assertEquals('n', r.consume()); }
void mark() { bufMark = bufPos; }
CharacterReader { void mark() { bufMark = bufPos; } }
CharacterReader { void mark() { bufMark = bufPos; } CharacterReader(Reader input, int sz);  CharacterReader(Reader input);  CharacterReader(String input); }
CharacterReader { void mark() { bufMark = bufPos; } CharacterReader(Reader input, int sz);  CharacterReader(Reader input);  CharacterReader(String input); int pos(); boolean isEmpty(); char current(); void advance(); String consumeTo(char c); String consumeToAny(final char... chars); @Override String toString(); }
CharacterReader { void mark() { bufMark = bufPos; } CharacterReader(Reader input, int sz);  CharacterReader(Reader input);  CharacterReader(String input); int pos(); boolean isEmpty(); char current(); void advance(); String consumeTo(char c); String consumeToAny(final char... chars); @Override String toString();  }