public interface MarkupFilter
MarkupWriterImplto determine how to convert
the output into a format compatible with the content type. Typically, this means translating
certain characters into escape codes (for example, in HTML, convert '<' to '<'.
Implementations should be stateless and thread safe.
| Modifier and Type | Method and Description |
|---|---|
void |
print(java.io.PrintWriter writer,
char[] data,
int offset,
int length,
boolean escapeQuotes)
Print the value to the writer, escaping characters as necessary.
|
void print(java.io.PrintWriter writer, char[] data, int offset, int length, boolean escapeQuotes)
writer - the write to which converted content should be outputdata - a character array containing the characters to be outputoffset - the offset within the array to begin outputlength - the number of characters to outputescapeQuotes - if true, the value is being rendered as an attribute value and double quotes
within the value should be escaped. If false, then then double quotes may pass
through unchanged.