Changeset 319 in josm for src/org/openstreetmap/josm/io/OsmIdReader.java
- Timestamp:
- 2007-09-04T10:21:49+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/io/OsmIdReader.java
r298 r319 11 11 import java.util.Map; 12 12 13 import javax.xml.parsers.ParserConfigurationException; 14 import javax.xml.parsers.SAXParserFactory; 15 13 16 import org.xml.sax.Attributes; 17 import org.xml.sax.InputSource; 14 18 import org.xml.sax.SAXException; 15 16 import uk.co.wilson.xml.MinML2; 19 import org.xml.sax.helpers.DefaultHandler; 17 20 18 21 /** … … 21 24 * @author Imi 22 25 */ 23 public class OsmIdReader extends MinML2{26 public class OsmIdReader extends DefaultHandler { 24 27 25 28 private boolean cancel; … … 41 44 this.in = new InputStreamReader(in, "UTF-8"); 42 45 try { 43 parse(this.in); 46 SAXParserFactory.newInstance().newSAXParser().parse(new InputSource(this.in), this); 47 } catch (ParserConfigurationException e) { 48 if (!cancel) { 49 e.printStackTrace(); // broken SAXException chaining 50 throw new SAXException(e); 51 } 44 52 } catch (SAXException e) { 45 53 if (!cancel)
Note:
See TracChangeset
for help on using the changeset viewer.