Class FormattedXmlOutput

java.lang.Object
net.officefloor.plugin.xml.marshall.output.FormattedXmlOutput
All Implemented Interfaces:
XmlOutput

public class FormattedXmlOutput extends Object implements XmlOutput
Provides formatting of the XML output to a delegate XmlOutput.
Author:
Daniel Sagenschneider
  • Constructor Details

    • FormattedXmlOutput

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

    • write

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