public class StringTemplateSource extends AbstractTemplateSource
TemplateSource.| Constructor and Description |
|---|
StringTemplateSource(String filename,
String content)
Creates a new
StringTemplateSource. |
| Modifier and Type | Method and Description |
|---|---|
String |
content(Charset charset)
The template content.
|
String |
filename()
The file's name.
|
long |
lastModified()
The last modified date.
|
equals, hashCode, toStringpublic StringTemplateSource(String filename, String content)
StringTemplateSource.filename - The template's file name. Required.content - The template's content. Required.public String content(Charset charset)
TemplateSourcecharset - Charset to use.public String filename()
TemplateSourcepublic long lastModified()
TemplateSourceCopyright © 2021. All rights reserved.