public void addPaths(Reader input,int nodeType) throws IOException {
  this.nodeType=nodeType;
  String type;
  String contents;
  init(input);
  while ((type=nextType()) != null) {
    if (type.equals(LINESTRING)) {
      contents=readNestedContents();
      updateMap(parseLineString(contents));
    }
 else     if (type.equals(MULTILINESTRING)) {
      for (      List<Coord> list : parseMultilinestring()) {
        updateMap(list);
      }
    }
 else {
      readNestedContents();
    }
  }
}

public void addPaths ( Reader input , int nodeType ) throws IOException { this . nodeType = nodeType ; String type ; String contents ; init ( input ) ; while ( ( type = nextType ( ) ) != null ) { if ( type . equals ( LINESTRING ) ) { contents = readNestedContents ( ) ; updateMap ( parseLineString ( contents ) ) ; } else if ( type . equals ( MULTILINESTRING ) ) { for ( List < Coord > list : parseMultilinestring ( ) ) { updateMap ( list ) ; } } else { readNestedContents ( ) ; } } }
add paths to current path set . adding paths multiple times has the same result as concatenating the data before adding it .
