public List<Coord> readPoints(Reader r) throws IOException {
  List<Coord> points=new ArrayList<Coord>();
  String type;
  init(r);
  while ((type=nextType()) != null) {
    if (type.equals(POINT)) {
      points.add(parsePoint());
    }
 else {
      readNestedContents();
    }
  }
  return points;
}

public List < Coord > readPoints ( Reader r ) throws IOException { List < Coord > points = new ArrayList < Coord > ( ) ; String type ; init ( r ) ; while ( ( type = nextType ( ) ) != null ) { if ( type . equals ( POINT ) ) { points . add ( parsePoint ( ) ) ; } else { readNestedContents ( ) ; } } return points ; }
read point data from a reader
