private ParsedSVG(InputStream inputStream) throws IOException { String parser = XMLResourceDescriptor.getXMLParserClassName(); SAXSVGDocumentFactory f = new SAXSVGDocumentFactory(parser); svgDocument = f.createSVGDocument("file://svg", inputStream); Element svgDocumentNode = svgDocument.getDocumentElement(); size = Size.createRect( parseDimension(svgDocumentNode.getAttribute("width")), parseDimension(svgDocumentNode.getAttribute("height"))); }
SAXSVGDocumentFactory factory = new SAXSVGDocumentFactory( getParserName()); doc = factory.createSVGDocument(src.getSystemId(), in);
outDoc = f.createSVGDocument (uri, new StringReader(sw.toString())); } catch (Exception e) {
outDoc = f.createSVGDocument (uri, new StringReader(sw.toString())); } catch (Exception e) {