Changeset 1196 in josm for trunk/src/org/openstreetmap/josm/io
- Timestamp:
- 2008-12-31T12:35:50+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/OsmReader.java
r1195 r1196 60 60 */ 61 61 private DataSet ds = new DataSet(); 62 public DataSet getDs() { return ds; } 63 64 /** 65 * Record warnings. If there were any data inconsistencies, append 66 * a newline-terminated string. 67 */ 68 private String parseNotes = new String(); 69 public String getParseNotes() { 70 return parseNotes; 71 } 62 72 63 73 /** … … 333 343 Node n = findNode(id); 334 344 if (n == null) { 345 parseNotes += tr("Skipping a way because it includes a node that doesn't exist: {0}\n", id); 335 346 failed = true; 336 347 break; … … 435 446 */ 436 447 public static DataSet parseDataSet(InputStream source, DataSet ref, PleaseWaitDialog pleaseWaitDlg) throws SAXException, IOException { 448 return parseDataSetOsm(source, ref, pleaseWaitDlg).ds; 449 } 450 451 public static OsmReader parseDataSetOsm(InputStream source, DataSet ref, PleaseWaitDialog pleaseWaitDlg) throws SAXException, IOException { 437 452 OsmReader osm = new OsmReader(); 438 453 osm.references = ref == null ? new DataSet() : ref; … … 468 483 o.id = 0; 469 484 470 return osm .ds;485 return osm; 471 486 } 472 487 }
Note:
See TracChangeset
for help on using the changeset viewer.