org.apache.velocity.runtime.resource.util
public final class StringResource extends java.lang.Object
Constructor and Description |
---|
StringResource(java.lang.String body,
java.lang.String encoding)
convenience constructor; sets body to 'body' and sets lastModified to now
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBody()
Sets the template body.
|
java.lang.String |
getEncoding()
Returns the encoding of this String resource.
|
long |
getLastModified()
Returns the modification date of the template.
|
void |
setBody(java.lang.String body)
Sets a new value for the template body.
|
void |
setEncoding(java.lang.String encoding)
Sets the encoding of this string resource.
|
void |
setLastModified(long lastModified)
Changes the last modified parameter.
|
public StringResource(java.lang.String body, java.lang.String encoding)
body
- public java.lang.String getBody()
public long getLastModified()
public void setBody(java.lang.String body)
body
- New body valuepublic void setLastModified(long lastModified)
lastModified
- The modification time in millis.public java.lang.String getEncoding()
public void setEncoding(java.lang.String encoding)
encoding
- The new encoding of this resource.Copyright © 2000-2014. All Rights Reserved.