com.liferay.portal.kernel.template
Class StringTemplateResource
java.lang.Object
com.liferay.portal.kernel.template.StringTemplateResource
- All Implemented Interfaces:
- TemplateResource, Externalizable, Serializable
public class StringTemplateResource
- extends Object
- implements TemplateResource
- See Also:
- Serialized Form
StringTemplateResource
public StringTemplateResource()
- The empty constructor is required by
Externalizable
. Do
not use this for any other purpose.
StringTemplateResource
public StringTemplateResource(String templateId,
String templateContent)
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
getContent
public String getContent()
getLastModified
public long getLastModified()
- Specified by:
getLastModified
in interface TemplateResource
getReader
public Reader getReader()
- Specified by:
getReader
in interface TemplateResource
getTemplateId
public String getTemplateId()
- Specified by:
getTemplateId
in interface TemplateResource
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
readExternal
public void readExternal(ObjectInput objectInput)
throws IOException
- Specified by:
readExternal
in interface Externalizable
- Throws:
IOException
writeExternal
public void writeExternal(ObjectOutput objectOutput)
throws IOException
- Specified by:
writeExternal
in interface Externalizable
- Throws:
IOException