Class XDocStreamer


  • public class XDocStreamer
    extends java.lang.Object
    Reads an XDOC file using SAX and streams its content (with some modifications) to an output stream.
    • Constructor Summary

      Constructors 
      Constructor Description
      XDocStreamer​(java.io.File xdoc, java.io.Writer writer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void writeContent()
      Parse the file and write its transformed content to the Writer.
      • Methods inherited from class java.lang.Object

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

      • XDocStreamer

        public XDocStreamer​(java.io.File xdoc,
                            java.io.Writer writer)
    • Method Detail

      • writeContent

        public void writeContent()
                          throws org.xml.sax.SAXException
        Parse the file and write its transformed content to the Writer.
        Throws:
        org.xml.sax.SAXException - if unable to parse the xdoc file