private void parseBlock ( String keyPrefix ) throws IOException { parsePropertyList ( keyPrefix ) ; Token token ; if ( ( token = peek ( ) ) . getId ( ) == Token . RBRACE ) { read ( ) ; } else { error ( "Right brace expected" , token ) ; } }
When this is called the LBRACE token has already been read .