DefaultInterpreterParser { public void skipWhitespace(ParserBuffer reader) throws IOException { int c = 0; while((c = read(reader)) != -1 && Character.isWhitespace(c)) {} if(c != -1) { unread(reader, c); } }  ParsedCommand parseCommand(ParserBuffer reader); void skipWhitespace(ParserBuffer reader); void skipWhitespaceAndComments(ParserBuffer reader); String parseWord(ParserBuffer reader);  }
@Test public void testCanSkipWhitespace() throws Exception { final ParserBuffer reader = reader(" \n\t\t xxx"); parser.skipWhitespace(reader); checkRemainder("xxx", reader); }