Example #1
0
 /** *********************************************************************** */
 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();
 }
Example #3
0
 public void setupExceptionOutput(String message) {
   document = XMLDomUtils.getExceptionDom(message);
   exceptionFlag = true;
 }