Class GeneratedFile


  • public class GeneratedFile
    extends Object
    File to be generated by freemarker.
    • Constructor Detail

      • GeneratedFile

        public GeneratedFile​(freemarker.template.Configuration cfg,
                             Map model,
                             String templateName,
                             File outputFile)
        Creates a file generator.
        Parameters:
        cfg - the freemarker configuration
        model - the freemarker model
        templateName - the name of the freemarker template
        outputFile - the output file
    • Method Detail

      • generate

        public void generate()
                      throws IOException,
                             freemarker.template.TemplateException
        Generates the file.
        Throws:
        IOException - if writing to file failed
        freemarker.template.TemplateException - if some template error