/** * Creates a <code>Point</code> using the next token in the stream. * * @return a <code>Point</code> specified by the next token in the stream * @throws IOException if an I/O error occurs * @throws ParseException if an unexpected token was encountered */ private Point readPointText() throws IOException, ParseException { String nextToken = getNextEmptyOrOpener(); if (nextToken.equals(EMPTY)) { return geometryFactory.createPoint((Coordinate) null); } Point point = geometryFactory.createPoint(getPreciseCoordinate()); getNextCloser(); return point; }
/** * Creates a <code>Point</code> using the next token in the stream. * *@return a <code>Point</code> specified by the next token in the stream *@throws IOException * if an I/O error occurs *@throws ParseException * if an unexpected token was encountered */ private Point readPointText() throws IOException, ParseException { String nextToken = getNextEmptyOrOpener(); if (nextToken.equals(EMPTY)) { return geometryFactory.createPoint((Coordinate) null); } Point point = geometryFactory.createPoint(getPreciseCoordinate()); getNextCloser(); return point; }