/** *********************************************************************** */ private Document parseTemplateXML() { InputStream templateInputStream = null; try { templateInputStream = getClass().getClassLoader().getResourceAsStream(getTemplateLocation()); return XMLDomUtils.getTemplateDom(templateInputStream); } finally { if (templateInputStream != null) { try { templateInputStream.close(); } catch (IOException e) { // ignore, closing.. } } } }
public OutputFormatter() { this.document = XMLDomUtils.loadFile( getClass().getClassLoader().getResourceAsStream(this.getTemplateLocation())); this.initNamespaces(); }
public void setupExceptionOutput(String message) { document = XMLDomUtils.getExceptionDom(message); exceptionFlag = true; }