public class OutputValueRendererXMLString extends Object implements OutputValueRenderer
Constructor and Description |
---|
OutputValueRendererXMLString() |
Modifier and Type | Method and Description |
---|---|
void |
render(Object object,
StringBuilder buf)
Renders the value to the buffer.
|
static void |
xmlEncode(String s,
StringBuilder sb,
boolean isEncodeSpecialChar)
XML-Encode the passed string.
|
public void render(Object object, StringBuilder buf)
OutputValueRenderer
render
in interface OutputValueRenderer
object
- to renderbuf
- buffer to populatepublic static void xmlEncode(String s, StringBuilder sb, boolean isEncodeSpecialChar)
s
- string to encodesb
- string buffer to populateisEncodeSpecialChar
- true for encoding of special characters below ' ', false for leaving special chars