Class FastXMLWriter


  • public class FastXMLWriter
    extends java.lang.Object
    Simple implementation of XMLWriter, optimized for speed. The output is not necessarily human-readable, but is fine for automated parsing.
    Author:
    Thomas Down
    • Constructor Summary

      Constructors 
      Constructor Description
      FastXMLWriter​(java.io.PrintWriter writer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void attribute​(java.lang.String qName, java.lang.String value)  
      void closeTag​(java.lang.String qName)  
      protected void numericalEntity​(char c)  
      void openTag​(java.lang.String qName)  
      void print​(java.lang.String data)  
      protected void printAttributeValue​(java.lang.String data)  
      protected void printChars​(java.lang.String data)  
      void println​(java.lang.String data)  
      void printRaw​(java.lang.String data)  
      • Methods inherited from class java.lang.Object

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

      • FastXMLWriter

        public FastXMLWriter​(java.io.PrintWriter writer)
    • Method Detail

      • openTag

        public void openTag​(java.lang.String qName)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • attribute

        public void attribute​(java.lang.String qName,
                              java.lang.String value)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • closeTag

        public void closeTag​(java.lang.String qName)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • println

        public void println​(java.lang.String data)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • print

        public void print​(java.lang.String data)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • printRaw

        public void printRaw​(java.lang.String data)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • printChars

        protected void printChars​(java.lang.String data)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • printAttributeValue

        protected void printAttributeValue​(java.lang.String data)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • numericalEntity

        protected void numericalEntity​(char c)
                                throws java.io.IOException
        Throws:
        java.io.IOException