|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TextProcessor
API for text processing.
Method Summary | |
---|---|
java.lang.String |
render(Script template,
Context context)
Render a resource with the specified template. |
void |
render(Script template,
java.io.Writer output,
Context context)
Render a resource with the specified template. |
void |
setWhitelist(java.util.List<java.lang.String> allowedClasses)
Specify a list of classes accessible to this processor. |
Method Detail |
---|
java.lang.String render(Script template, Context context) throws ProcessingException
OutOfMemoryError
could be thrown.
template
- The template used to render the resource.context
- Additional values that are passed to the template.
ProcessingException
- If an error occurs during rendering.void render(Script template, java.io.Writer output, Context context) throws ProcessingException
template
- The template used to render the resource.output
- A valid Writer
. The writer will be flushed when
output is complete. The writer will not be closed.context
- Additional values that are passed to the template.
ProcessingException
- If an error occurs during rendering.void setWhitelist(java.util.List<java.lang.String> allowedClasses)
allowedClasses
- The list of classes.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |