public class StringTemplateSource extends AbstractTemplateSource
TemplateSource
.Constructor and Description |
---|
StringTemplateSource(java.lang.String filename,
java.lang.String content)
Creates a new
StringTemplateSource . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
content()
The template content.
|
java.lang.String |
filename()
The file's name.
|
long |
lastModified()
The last modified date.
|
equals, hashCode, toString
public StringTemplateSource(java.lang.String filename, java.lang.String content)
StringTemplateSource
.filename
- The template's file name. Required.content
- The template's content. Required.public java.lang.String content() throws java.io.IOException
TemplateSource
java.io.IOException
- If the template can't read.public java.lang.String filename()
TemplateSource
public long lastModified()
TemplateSource
Copyright © 2010 - 2020 Adobe. All Rights Reserved