parseErrorWithLine("Invalid number: " + tokenizer.sval);
/** * Throws a formatted ParseException reporting that the current token * was unexpected. * * @param expected a description of what was expected * @throws ParseException * @throws AssertionFailedException if an invalid token is encountered */ private void parseErrorExpected(String expected) throws ParseException { // throws Asserts for tokens that should never be seen if (tokenizer.ttype == StreamTokenizer.TT_NUMBER) Assert.shouldNeverReachHere("Unexpected NUMBER token"); if (tokenizer.ttype == StreamTokenizer.TT_EOL) Assert.shouldNeverReachHere("Unexpected EOL token"); String tokenStr = tokenString(); parseErrorWithLine("Expected " + expected + " but found " + tokenStr); }
return readGeometryCollectionText(); parseErrorWithLine("Unknown geometry type: " + type);
parseErrorWithLine("Invalid number: " + tokenizer.sval);
/** * Throws a formatted ParseException reporting that the current token * was unexpected. * * @param expected a description of what was expected * @throws ParseException * @throws AssertionFailedException if an invalid token is encountered */ private void parseErrorExpected(String expected) throws ParseException { // throws Asserts for tokens that should never be seen if (tokenizer.ttype == StreamTokenizer.TT_NUMBER) Assert.shouldNeverReachHere("Unexpected NUMBER token"); if (tokenizer.ttype == StreamTokenizer.TT_EOL) Assert.shouldNeverReachHere("Unexpected EOL token"); String tokenStr = tokenString(); parseErrorWithLine("Expected " + expected + " but found " + tokenStr); }
return readGeometryCollectionText(); parseErrorWithLine("Unknown geometry type: " + type);