Changeset 10702 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2016-08-02T12:56:49+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/OsmReader.java
r10627 r10702 585 585 586 586 try (InputStreamReader ir = UTFInputStreamReader.create(source)) { 587 XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(ir); 588 setParser(parser); 587 XMLInputFactory factory = XMLInputFactory.newInstance(); 588 // do not try to load external entities 589 factory.setProperty(XMLInputFactory.IS_SUPPORTING_EXTERNAL_ENTITIES, Boolean.FALSE); 590 factory.setProperty(XMLInputFactory.SUPPORT_DTD, Boolean.FALSE); 591 setParser(factory.createXMLStreamReader(ir)); 589 592 parse(); 590 593 }
Note:
See TracChangeset
for help on using the changeset viewer.