Class WriterXmlOutput

  • All Implemented Interfaces:
    XmlOutput

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

      Fields 
      Modifier and Type Field Description
      protected java.io.Writer writer
      Writer to write XML.
    • Constructor Summary

      Constructors 
      Constructor Description
      WriterXmlOutput​(java.io.Writer writer)
      Initiate with the Writer.
    • 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
    • Field Detail

      • writer

        protected final java.io.Writer writer
        Writer to write XML.
    • Constructor Detail

      • WriterXmlOutput

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