Class WriterXmlOutput

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

public class WriterXmlOutput extends Object implements XmlOutput
Implementation of XmlOutput to write to a Writer.
Author:
Daniel Sagenschneider
  • Field Details

    • writer

      protected final Writer writer
      Writer to write XML.
  • Constructor Details

    • WriterXmlOutput

      public WriterXmlOutput(Writer writer)
      Initiate with the Writer.
      Parameters:
      writer - Writer.
  • 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.