public class EscapingPrintWriter extends com.thoughtworks.xstream.io.xml.PrettyPrintWriter implements PrintWriter
Constructor and Description |
---|
EscapingPrintWriter(Writer writer) |
Modifier and Type | Method and Description |
---|---|
String |
makeString()
Get string representation of PrintWriter.
|
void |
setRawValue(String text)
Write text without any escaping.
|
protected void |
writeText(com.thoughtworks.xstream.core.util.QuickWriter writer,
String text) |
addAttribute, close, endNode, endOfLine, flush, getNewLine, setValue, startNode, startNode, writeAttributeValue
encodeAttribute, encodeNode, underlyingWriter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public EscapingPrintWriter(Writer writer)
public void setRawValue(String text)
PrintWriter
setRawValue
in interface PrintWriter
text
- the string to this printwriter should write.public String makeString()
PrintWriter
makeString
in interface PrintWriter
protected void writeText(com.thoughtworks.xstream.core.util.QuickWriter writer, String text)
writeText
in class com.thoughtworks.xstream.io.xml.PrettyPrintWriter
This work is licensed under a Creative Commons Attribution 4.0 International License.