Class StAX2SAX


  • public class StAX2SAX
    extends java.lang.Object
    Bridge StAX and SAX parsing.
    • Constructor Summary

      Constructors 
      Constructor Description
      StAX2SAX​(org.xml.sax.ContentHandler handler)
      Primes a converter with a SAX handler.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void parse​(javax.xml.stream.XMLEventReader xmlReader)
      Consumes all StAX events and passes them on to the content handler
      void parse​(javax.xml.stream.XMLStreamReader xmlReader)  
      • Methods inherited from class java.lang.Object

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

      • StAX2SAX

        public StAX2SAX​(org.xml.sax.ContentHandler handler)
        Primes a converter with a SAX handler. Note: if handler is also LexicalHandler it will pass on lexical events.
        Parameters:
        handler -
    • Method Detail

      • parse

        public void parse​(javax.xml.stream.XMLStreamReader xmlReader)
                   throws javax.xml.stream.XMLStreamException,
                          org.xml.sax.SAXException
        Throws:
        javax.xml.stream.XMLStreamException
        org.xml.sax.SAXException
      • parse

        public void parse​(javax.xml.stream.XMLEventReader xmlReader)
                   throws javax.xml.stream.XMLStreamException,
                          org.xml.sax.SAXException
        Consumes all StAX events and passes them on to the content handler
        Throws:
        javax.xml.stream.XMLStreamException
        org.xml.sax.SAXException