Code example for Templates

Methods: newTransformer

0
    } 
     
    Transformer result = null;
     
    try { 
      result = lastTemplates.newTransformer();
    } catch(TransformerConfigurationException tce) {
      log.error(getClass().getName(), "getTransformer", tce);
      final IOException ioe = new IOException("newTransformer fails ( " + lastFilename + ")");
      ioe.initCause(tce);
      throw ioe;
    } 
     
    return result;
  } 
   
  /** Return a Templates object for the given filename */ 
  private Templates getTemplates(ResourceLoader loader, String filename,int cacheLifetimeSeconds) throws IOException {
     
    Templates result = null;
    lastFilename = null;