Class EscapingCompactWriter
java.lang.Object
com.thoughtworks.xstream.io.AbstractWriter
com.thoughtworks.xstream.io.xml.AbstractXmlWriter
com.thoughtworks.xstream.io.xml.PrettyPrintWriter
com.thoughtworks.xstream.io.xml.CompactWriter
org.craftercms.core.util.xml.marshalling.xstream.EscapingCompactWriter
- All Implemented Interfaces:
com.thoughtworks.xstream.io.ExtendedHierarchicalStreamWriter,com.thoughtworks.xstream.io.HierarchicalStreamWriter,com.thoughtworks.xstream.io.xml.XmlFriendlyWriter
public class EscapingCompactWriter
extends com.thoughtworks.xstream.io.xml.CompactWriter
Extension of
CompactWriter that enables setting on/off XML escaping.- Author:
- Alfonso Vásquez
-
Field Summary
FieldsFields inherited from class com.thoughtworks.xstream.io.xml.PrettyPrintWriter
depth, XML_1_0, XML_1_1, XML_QUIRKS -
Constructor Summary
ConstructorsConstructorDescriptionEscapingCompactWriter(Writer writer) EscapingCompactWriter(Writer writer, int mode) EscapingCompactWriter(Writer writer, int mode, com.thoughtworks.xstream.io.naming.NameCoder nameCoder) EscapingCompactWriter(Writer writer, com.thoughtworks.xstream.io.naming.NameCoder nameCoder) -
Method Summary
Modifier and TypeMethodDescriptionvoidsetEscapeXml(boolean escapeXml) protected voidwriteAttributeValue(com.thoughtworks.xstream.core.util.QuickWriter writer, String text) protected voidMethods inherited from class com.thoughtworks.xstream.io.xml.CompactWriter
endOfLineMethods inherited from class com.thoughtworks.xstream.io.xml.PrettyPrintWriter
addAttribute, close, endNode, flush, getNewLine, setValue, startNode, startNodeMethods inherited from class com.thoughtworks.xstream.io.xml.AbstractXmlWriter
escapeXmlNameMethods inherited from class com.thoughtworks.xstream.io.AbstractWriter
encodeAttribute, encodeNode, underlyingWriter
-
Field Details
-
escapeXml
protected boolean escapeXml
-
-
Constructor Details
-
EscapingCompactWriter
-
EscapingCompactWriter
-
EscapingCompactWriter
-
EscapingCompactWriter
public EscapingCompactWriter(Writer writer, int mode, com.thoughtworks.xstream.io.naming.NameCoder nameCoder)
-
-
Method Details
-
setEscapeXml
public void setEscapeXml(boolean escapeXml) -
writeText
- Overrides:
writeTextin classcom.thoughtworks.xstream.io.xml.PrettyPrintWriter
-
writeAttributeValue
protected void writeAttributeValue(com.thoughtworks.xstream.core.util.QuickWriter writer, String text) - Overrides:
writeAttributeValuein classcom.thoughtworks.xstream.io.xml.PrettyPrintWriter
-