java.lang .Object org.apache.velocity.runtime.resource.util .StringResource StringResource final public class StringResource (Code) Wrapper for Strings containing templates, allowing to add additional meta
data like timestamps.
author: Eelco Hillenius author: Henning P. Schmiedehausen version: $Id: StringResource.java 479058 2006-11-25 00:26:32Z henning $
StringResource public StringResource(String body, String encoding)(Code) convenience constructor; sets body to 'body' and sets lastModified to now
Parameters: body -
getBody public String getBody()(Code) Sets the template body.
String containing the template body.
getEncoding public String getEncoding()(Code) Returns the encoding of this String resource.
The encoding of this String resource.
getLastModified public long getLastModified()(Code) Returns the modification date of the template.
Modification date in milliseconds.
setBody public void setBody(String body)(Code) Sets a new value for the template body.
Parameters: body - New body value
setEncoding public void setEncoding(String encoding)(Code) Sets the encoding of this string resource.
Parameters: encoding - The new encoding of this resource.
setLastModified public void setLastModified(long lastModified)(Code) Changes the last modified parameter.
Parameters: lastModified - The modification time in millis.