/** {@inheritDoc} */ protected void initialize() { if (foObjs == null && batikAvailable) { // this sets the parser that will be used // by default (SVGBrokenLinkProvider) // normally the user agent value is used try { XMLResourceDescriptor.setXMLParserClassName( getAParserClassName()); foObjs = new HashMap<String, Maker>(); foObjs.put("svg", new SE()); foObjs.put(DEFAULT, new SVGMaker()); } catch (Throwable t) { log.error("Error while initializing the Batik SVG extensions", t); // if the classes are not available // the DISPLAY is not checked batikAvailable = false; } } }
/** initialize mapping */ protected void initialize() { if (foObjs == null && batikAvail) { // this sets the parser that will be used // by default (SVGBrokenLinkProvider) // normally the user agent value is used try { XMLResourceDescriptor.setXMLParserClassName( getAParserClassName()); foObjs = new HashMap<String, Maker>(); foObjs.put("batik", new SE()); foObjs.put(DEFAULT, new SVGMaker()); } catch (Throwable t) { // if the classes are not available // the DISPLAY is not checked batikAvail = false; } } }