java.lang.Object
io.inverno.mod.irt.AbstractTemplateSet
io.inverno.mod.irt.AbstractStringTemplateSet
- All Implemented Interfaces:
TemplateSet
A TemplateSet base implementation template sets which renders data in a StringBuilder
- Since:
- 1.2
- Author:
- Jeremy Kuhn
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.inverno.mod.irt.TemplateSet
TemplateSet.IndexableRenderable<T>, TemplateSet.Renderable<T> -
Field Summary
Fields inherited from class io.inverno.mod.irt.AbstractTemplateSet
charsetFields inherited from interface io.inverno.mod.irt.TemplateSet
COMPLETED_FUTURE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the string containing the rendered data.render(byte[] value) Renders a byte array to the output.Renders a string to the output.Methods inherited from class io.inverno.mod.irt.AbstractTemplateSet
applyTemplate, applyTemplate, applyTemplate, applyTemplate, applyTemplate, renderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.inverno.mod.irt.TemplateSet
template
-
Constructor Details
-
AbstractStringTemplateSet
Creates a String template set.
- Parameters:
charset- the charset to use to encode data
-
-
Method Details
-
getOutput
Returns the string containing the rendered data.
- Returns:
- a string
-
render
Description copied from interface:TemplateSetRenders a string to the output.
- Parameters:
value- the string to render- Returns:
- a future which completes once the value is rendered
-
render
Description copied from interface:TemplateSetRenders a byte array to the output.
- Parameters:
value- The byte array to render- Returns:
- a future which completes once the value is rendered
-