Class FormattedXmlOutput

  • All Implemented Interfaces:
    XmlOutput

    public class FormattedXmlOutput
    extends java.lang.Object
    implements XmlOutput
    Provides formatting of the XML output to a delegate XmlOutput.
    Author:
    Daniel Sagenschneider
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void write​(java.lang.String xmlSnippet)
      Writes the XML snippet.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FormattedXmlOutput

        public FormattedXmlOutput​(XmlOutput delegate,
                                  java.lang.String indent)
        Initiate.
        Parameters:
        delegate - Delegate XmlOutput to send the formatted XML.
        indent - Indent to use in formatting the XML.
    • Method Detail

      • write

        public void write​(java.lang.String xmlSnippet)
                   throws java.io.IOException
        Description copied from interface: XmlOutput
        Writes the XML snippet.
        Specified by:
        write in interface XmlOutput
        Parameters:
        xmlSnippet - XML snippet.
        Throws:
        java.io.IOException - If fail to write the XML snippet.