public List<List<Coord>> readLines(File file) throws IOException {
  List<List<Coord>> lines=new ArrayList<List<Coord>>();
  String type;
  init(new FileReader(file));
  while ((type=nextType()) != null) {
    if (type.equals(LINESTRING)) {
      lines.add(parseLineString(readNestedContents()));
    }
 else {
      readNestedContents();
    }
  }
  return lines;
}

public List < List < Coord > > readLines ( File file ) throws IOException { List < List < Coord > > lines = new ArrayList < List < Coord > > ( ) ; String type ; init ( new FileReader ( file ) ) ; while ( ( type = nextType ( ) ) != null ) { if ( type . equals ( LINESTRING ) ) { lines . add ( parseLineString ( readNestedContents ( ) ) ) ; } else { readNestedContents ( ) ; } } return lines ; }
read line ( linestring ) data from a file
