Changeset 10741 in josm for trunk/src/com/kitfox
- Timestamp:
- 2016-08-06T00:00:24+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/com/kitfox/svg/SVGUniverse.java
r8149 r10741 63 63 import javax.imageio.ImageIO; 64 64 import javax.xml.bind.DatatypeConverter; 65 import javax.xml.parsers.ParserConfigurationException; 66 import javax.xml.parsers.SAXParserFactory; 65 67 import org.xml.sax.EntityResolver; 66 68 import org.xml.sax.InputSource; … … 68 70 import org.xml.sax.SAXParseException; 69 71 import org.xml.sax.XMLReader; 70 import org.xml.sax.helpers.XMLReaderFactory;71 72 72 73 /** … … 574 575 } 575 576 576 private XMLReader getXMLReaderCached() throws SAXException 577 private XMLReader getXMLReaderCached() throws SAXException, ParserConfigurationException 577 578 { 578 579 if (cachedReader == null) 579 580 { 580 cachedReader = XMLReaderFactory.createXMLReader(); 581 SAXParserFactory factory = SAXParserFactory.newInstance(); 582 factory.setNamespaceAware(true); 583 cachedReader = factory.newSAXParser().getXMLReader(); 581 584 } 582 585 return cachedReader;
Note:
See TracChangeset
for help on using the changeset viewer.