public final class FreeMarkerUtil
extends java.lang.Object
| Constructor and Description |
|---|
FreeMarkerUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
processTemplate(java.lang.String templateName,
java.lang.Object templateDataModel,
java.io.File outputFile)
Processes FreeMarker template with the provided data model and generates output.
|
static void |
processTemplate(java.lang.String templateName,
java.lang.Object templateDataModel,
java.io.File outputFile,
boolean amalgamate)
Processes FreeMarker template with the provided data model and generates output.
|
static void |
processTemplate(java.lang.String templateName,
java.lang.Object templateDataModel,
java.io.Writer outputWriter)
Processes FreeMarker template with the provided data model and generates output.
|
static java.util.List<java.lang.String> |
readFreemarkerTemplate(java.lang.String templateName)
Gets all lines of the requested FreeMarker template.
|
public static void processTemplate(java.lang.String templateName,
java.lang.Object templateDataModel,
java.io.Writer outputWriter)
throws ZserioExtensionException
templateName - The template name with the path relatively to "/FREEMARKER_LOCATION" directory.templateDataModel - The template data model to apply.outputWriter - The writer to use for generated output.ZserioExtensionException - In case of any template error.public static void processTemplate(java.lang.String templateName,
java.lang.Object templateDataModel,
java.io.File outputFile)
throws ZserioExtensionException
templateName - The template name with the path relatively to "/FREEMARKER_LOCATION" directory.templateDataModel - The template data model to apply.outputFile - The output to be generated.ZserioExtensionException - In case of any template error.public static void processTemplate(java.lang.String templateName,
java.lang.Object templateDataModel,
java.io.File outputFile,
boolean amalgamate)
throws ZserioExtensionException
templateName - The template name with the path relatively to "/FREEMARKER_LOCATION" directory.templateDataModel - The template data model to apply.outputFile - The output to be generated.amalgamate - True if the generated output will be amalgamated to the output file.ZserioExtensionException - In case of any template error.public static java.util.List<java.lang.String> readFreemarkerTemplate(java.lang.String templateName)
throws ZserioExtensionException
templateName - Name of the FreeMarker template to read.ZserioExtensionException - When the template is not available.Last updated 2024-10-29 12:52:38