public class StringTemplateResource extends Object implements TemplateResource
| Constructor and Description |
|---|
StringTemplateResource()
The empty constructor is required by
Externalizable. |
StringTemplateResource(String templateId,
String templateContent) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getContent() |
long |
getLastModified() |
Reader |
getReader() |
String |
getTemplateId() |
int |
hashCode() |
void |
readExternal(ObjectInput objectInput) |
void |
writeExternal(ObjectOutput objectOutput) |
public StringTemplateResource()
Externalizable. Do
not use this for any other purpose.public String getContent()
public long getLastModified()
getLastModified in interface TemplateResourcepublic Reader getReader()
getReader in interface TemplateResourcepublic String getTemplateId()
getTemplateId in interface TemplateResourcepublic void readExternal(ObjectInput objectInput) throws IOException
readExternal in interface ExternalizableIOExceptionpublic void writeExternal(ObjectOutput objectOutput) throws IOException
writeExternal in interface ExternalizableIOException