|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectwicket.util.resource.AbstractResourceStream
wicket.util.resource.AbstractStringResourceStream
wicket.extensions.util.resource.TextTemplate
wicket.extensions.util.resource.PackagedTextTemplate
A string resource that can be appended to.
| Constructor Summary | |
PackagedTextTemplate(java.lang.Class clazz,
java.lang.String fileName)
Constructor. |
|
PackagedTextTemplate(java.lang.Class clazz,
java.lang.String fileName,
java.lang.String contentType)
Constructor. |
|
PackagedTextTemplate(java.lang.Class clazz,
java.lang.String fileName,
java.lang.String contentType,
java.lang.String encoding)
Constructor. |
|
| Method Summary | |
java.lang.String |
getString()
Gets the string resource. |
TextTemplate |
interpolate(java.util.Map variables)
Interpolate the map of variables with the content and replace the content with the result. |
long |
length()
|
| Methods inherited from class wicket.extensions.util.resource.TextTemplate |
asString, asString |
| Methods inherited from class wicket.util.resource.AbstractStringResourceStream |
close, getContentType, getInputStream, lastModifiedTime, setLastModified |
| Methods inherited from class wicket.util.resource.AbstractResourceStream |
getCharset, getLocale, setCharset, setLocale |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PackagedTextTemplate(java.lang.Class clazz,
java.lang.String fileName)
clazz - The class to be used for retrieving the classloader for
loading the packaged template.fileName - The name of the file, relative to the clazz position
public PackagedTextTemplate(java.lang.Class clazz,
java.lang.String fileName,
java.lang.String contentType)
clazz - The class to be used for retrieving the classloader for
loading the packaged template.fileName - the name of the file, relative to the clazz positioncontentType - The mime type of this resource, such as "image/jpeg" or
"text/html"
public PackagedTextTemplate(java.lang.Class clazz,
java.lang.String fileName,
java.lang.String contentType,
java.lang.String encoding)
clazz - The class to be used for retrieving the classloader for
loading the packaged template.fileName - the name of the file, relative to the clazz positioncontentType - The mime type of this resource, such as "image/jpeg" or
"text/html"encoding - The file's encoding, e.g. 'UTF-8'| Method Detail |
public final TextTemplate interpolate(java.util.Map variables)
WARNING there is no going back to the original contents after the
interpolation is done. if you need to do different interpolations on the
same original contents, use method TextTemplate.asString(Map) instead.
interpolate in class TextTemplatevariables - The variables to interpolate
public final long length()
IResourceStream.length()public java.lang.String getString()
TextTemplate
getString in class TextTemplateAbstractStringResourceStream.getString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||