Ejemplo n.º 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..
       }
     }
   }
 }
Ejemplo n.º 2
0
 public OutputFormatter() {
   this.document =
       XMLDomUtils.loadFile(
           getClass().getClassLoader().getResourceAsStream(this.getTemplateLocation()));
   this.initNamespaces();
 }
Ejemplo n.º 3
0
 public void setupExceptionOutput(String message) {
   document = XMLDomUtils.getExceptionDom(message);
   exceptionFlag = true;
 }