Interface TemplateProcessor
- All Known Implementing Classes:
AbstractTemplateProcessor,FTLTemplateProcessor
public interface TemplateProcessor
Web Script Template Processor
- Author:
- davidc
-
Method Summary
Modifier and TypeMethodDescriptionGets the default encodingbooleanhasTemplate(String template) Determines if a template existsvoidProcess a template against the supplied data model and write to the out.voidprocessString(String template, Object model, Writer out) Process a string template against the supplied data model and write to the out.voidreset()Reset the Template Processor
-
Method Details
-
hasTemplate
Determines if a template exists- Parameters:
template- String- Returns:
- true => exists
-
process
Process a template against the supplied data model and write to the out.- Parameters:
template- Template name/pathmodel- Object model to process template againstout- Writer object to send output too
-
processString
Process a string template against the supplied data model and write to the out.- Parameters:
template- Template stringmodel- Object model to process template againstout- Writer object to send output too
-
getDefaultEncoding
String getDefaultEncoding()Gets the default encoding- Returns:
- default encoding
-
reset
void reset()Reset the Template Processor
-