/** * Processes the specified template with the given model. * * @param template The template. * @param model The root model. */ public void processTemplate(Template template, Object model) throws TemplateException, IOException { processTemplate(template, model, System.out); }
/** * Processes the specified template with the given model. * * @param templateURL The template URL. * @param model The root model. */ public void processTemplate(URL templateURL, Object model) throws IOException, TemplateException { processTemplate(templateURL, model, System.out); }
/** * Processes the specified template with the given model. * * @param templateURL The template URL. * @param model The root model. */ public void processTemplate(URL templateURL, Object model) throws IOException, TemplateException { processTemplate(templateURL, model, System.out); }
/** * Processes the specified template with the given model. * * @param template The template. * @param model The root model. */ public void processTemplate(Template template, Object model) throws TemplateException, IOException { processTemplate(template, model, System.out); }
/** * Processes the specified template with the given model. * * @param templateURL The template URL. * @param model The root model. * @param out The output stream to process to. */ public void processTemplate(URL templateURL, Object model, PrintStream out) throws IOException, TemplateException { debug("Processing template %s.", templateURL); Configuration configuration = getConfiguration(); configuration.setDefaultEncoding("UTF-8"); Template template = configuration.getTemplate(templateURL.toString()); processTemplate(template, model, out); }
/** * Processes the specified template with the given model. * * @param templateURL The template URL. * @param model The root model. * @param out The output stream to process to. */ public void processTemplate(URL templateURL, Object model, PrintStream out) throws IOException, TemplateException { debug("Processing template %s.", templateURL); Configuration configuration = getConfiguration(); configuration.setDefaultEncoding("UTF-8"); Template template = configuration.getTemplate(templateURL.toString()); processTemplate(template, model, out); }