Changeset 5854 in josm for trunk/src/org/openstreetmap/josm/io
- Timestamp:
- 2013-04-14T12:50:53+02:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/io
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/GpxReader.java
r5684 r5854 423 423 * Parse the input stream and store the result in trackData and markerData 424 424 * 425 * @param source the source input stream 426 * @throws IOException if an IO error occurs, e.g. the input stream is closed. 425 427 */ 426 428 public GpxReader(InputStream source) throws IOException { 427 this.inputSource = new InputSource(UTFInputStreamReader.create(source, "UTF-8")); 429 InputStream filtered = new InvalidXmlCharacterFilter(source); 430 this.inputSource = new InputSource(UTFInputStreamReader.create(filtered, "UTF-8")); 428 431 } 429 432 430 433 /** 434 * Parse the GPX data. 431 435 * 432 * @return True if file was properly parsed, false if there was error during parsing but some data were parsed anyway 436 * @param tryToFinish true, if the reader should return at least part of the GPX 437 * data in case of an error. 438 * @return true if file was properly parsed, false if there was error during 439 * parsing but some data were parsed anyway 433 440 * @throws SAXException 434 441 * @throws IOException -
trunk/src/org/openstreetmap/josm/io/UTFInputStreamReader.java
r3372 r5854 2 2 package org.openstreetmap.josm.io; 3 3 4 import java.io.IOException; 4 5 import java.io.InputStream; 5 6 import java.io.InputStreamReader; 6 import java.io.IOException;7 7 import java.io.PushbackInputStream; 8 8 import java.io.UnsupportedEncodingException;
Note:
See TracChangeset
for help on using the changeset viewer.