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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Get string representation of PrintWriter.
    void
    Write text without any escaping.
    protected void
    writeText(com.thoughtworks.xstream.core.util.QuickWriter writer, String text)
     

    Methods inherited from class com.thoughtworks.xstream.io.xml.PrettyPrintWriter

    addAttribute, close, endNode, endOfLine, flush, getNewLine, setValue, startNode, startNode, writeAttributeValue

    Methods inherited from class com.thoughtworks.xstream.io.xml.AbstractXmlWriter

    escapeXmlName

    Methods inherited from class com.thoughtworks.xstream.io.AbstractWriter

    encodeAttribute, encodeNode, underlyingWriter

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.thoughtworks.xstream.io.ExtendedHierarchicalStreamWriter

    startNode

    Methods inherited from interface com.thoughtworks.xstream.io.HierarchicalStreamWriter

    addAttribute, close, endNode, flush, setValue, startNode, underlyingWriter
  • Constructor Details

    • EscapingPrintWriter

      public EscapingPrintWriter(Writer writer)
  • Method Details

    • setRawValue

      public void setRawValue(String text)
      Description copied from interface: PrintWriter
      Write text without any escaping.
      Specified by:
      setRawValue in interface PrintWriter
      Parameters:
      text - the string to this printwriter should write.
    • makeString

      public String makeString()
      Description copied from interface: PrintWriter
      Get string representation of PrintWriter.
      Specified by:
      makeString in interface PrintWriter
      Returns:
      String the string representation of this PrintWriter.
    • writeText

      protected void writeText(com.thoughtworks.xstream.core.util.QuickWriter writer, String text)
      Overrides:
      writeText in class com.thoughtworks.xstream.io.xml.PrettyPrintWriter