Package ddf.catalog.transformer.xml
Class EscapingPrintWriter
java.lang.Object
com.thoughtworks.xstream.io.AbstractWriter
com.thoughtworks.xstream.io.xml.AbstractXmlWriter
com.thoughtworks.xstream.io.xml.PrettyPrintWriter
ddf.catalog.transformer.xml.EscapingPrintWriter
- All Implemented Interfaces:
com.thoughtworks.xstream.io.ExtendedHierarchicalStreamWriter,com.thoughtworks.xstream.io.HierarchicalStreamWriter,com.thoughtworks.xstream.io.xml.XmlFriendlyWriter,PrintWriter
public class EscapingPrintWriter
extends com.thoughtworks.xstream.io.xml.PrettyPrintWriter
implements PrintWriter
Uses the apache-commons escaping utility
https://commons.apache.org/proper/commons-lang/javadocs/api-2.6/org/apache/commons/lang/StringEscapeUtils.html
-
Field Summary
Fields inherited from class com.thoughtworks.xstream.io.xml.PrettyPrintWriter
depth, XML_1_0, XML_1_0_REPLACEMENT, XML_1_1, XML_1_1_REPLACEMENT, XML_QUIRKS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet string representation of PrintWriter.voidsetRawValue(String text) Write text without any escaping.protected voidMethods inherited from class com.thoughtworks.xstream.io.xml.PrettyPrintWriter
addAttribute, close, endNode, endOfLine, flush, getNewLine, setValue, startNode, startNode, writeAttributeValueMethods inherited from class com.thoughtworks.xstream.io.xml.AbstractXmlWriter
escapeXmlNameMethods inherited from class com.thoughtworks.xstream.io.AbstractWriter
encodeAttribute, encodeNode, underlyingWriterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.thoughtworks.xstream.io.ExtendedHierarchicalStreamWriter
startNodeMethods inherited from interface com.thoughtworks.xstream.io.HierarchicalStreamWriter
addAttribute, close, endNode, flush, setValue, startNode, underlyingWriter
-
Constructor Details
-
EscapingPrintWriter
-
-
Method Details
-
setRawValue
Description copied from interface:PrintWriterWrite text without any escaping.- Specified by:
setRawValuein interfacePrintWriter- Parameters:
text- the string to this printwriter should write.
-
makeString
Description copied from interface:PrintWriterGet string representation of PrintWriter.- Specified by:
makeStringin interfacePrintWriter- Returns:
- String the string representation of this PrintWriter.
-
writeText
- Overrides:
writeTextin classcom.thoughtworks.xstream.io.xml.PrettyPrintWriter
-