ParseCtxt { public final ParseCtxt skipBlanks() { while (!isDone()) { if (!isSpace(text.charAt(pos))) { break; } ++pos; } return this; } ParseCtxt(String text);  ParseCtxt(String text, SyntaxVersion syntaxVersion); final boolean isDone(); static boolean isSpace(char ch); final ParseCtxt skipBlanks(); final boolean isOnChar(char ch); final char currentChar(); final void readChar(char ch); final boolean testAndReadChar(char ch); final char readCharAndAdvance(); String readCharsAndAdvanceUntil(char... charsToStopBefore); final String skipBlanksAndReadNameString(); final String readNameString(); boolean isNameStartChar(char ch); boolean isNameMiddleChar(char ch); void readString(String s); boolean readOptionalString(String s); boolean readOptionalChar(char ch); final String readTill(char ch); int getPos(); void setPos(int newPos); String getText(); SyntaxVersion getSyntaxVersion();  }
@Test public void testSkipBlanks() { ParseCtxt c = new ParseCtxt(" \t\t hello"); c.skipBlanks(); assertEquals(5, c.getPos()); assertEquals("hello", c.readNameString()); }