Changeset 23715 in osm for applications/editors
- Timestamp:
- 2010-10-19T22:20:32+02:00 (14 years ago)
- Location:
- applications/editors/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/importvec/src/org/openstreetmap/josm/plugins/importvec/ImportVectorAction.java
r23712 r23715 8 8 import java.awt.geom.Point2D; 9 9 import java.awt.geom.Rectangle2D; 10 import java.io.ByteArrayInputStream; 10 11 import java.io.File; 11 12 import java.io.FileInputStream; … … 34 35 import org.openstreetmap.josm.io.OsmTransferException; 35 36 import org.openstreetmap.josm.tools.Shortcut; 37 import org.xml.sax.EntityResolver; 36 38 import org.xml.sax.InputSource; 37 39 import org.xml.sax.SAXException; … … 203 205 XMLReader rdr = XMLReaderFactory.createXMLReader(); 204 206 rdr.setContentHandler(loader); 207 rdr.setEntityResolver(new EntityResolver() { 208 public InputSource resolveEntity(String publicId, String systemId) { 209 //Ignore all DTDs 210 return new InputSource(new ByteArrayInputStream(new byte[0])); 211 } 212 }); 205 213 FileInputStream in = new FileInputStream(f); 206 214 try {
Note:
See TracChangeset
for help on using the changeset viewer.