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 StringTemplateResource(String templateId, String templateContent)
public boolean equals(Object obj)
equals
in class Object
public String getContent()
public long getLastModified()
getLastModified
in interface TemplateResource
public Reader getReader()
getReader
in interface TemplateResource
public String getTemplateId()
getTemplateId
in interface TemplateResource
public int hashCode()
hashCode
in class Object
public void readExternal(ObjectInput objectInput) throws IOException
readExternal
in interface Externalizable
IOException
public void writeExternal(ObjectOutput objectOutput) throws IOException
writeExternal
in interface Externalizable
IOException