Class SaxPullAdapter


  • public class SaxPullAdapter
    extends java.lang.Object
    Implementierung eines SAX-basierten Pull-Adapters zum Parsen von XML-Dateien, der die Verwendung des SAX-XML-Parsers durch Umkehrung des Kontrollflusses vereinfacht.
    • Constructor Summary

      Constructors 
      Constructor Description
      SaxPullAdapter​(java.net.URL schemaURL)  
      SaxPullAdapter​(org.xml.sax.EntityResolver resolver)  
    • Method Summary

      Modifier and Type Method Description
      PullableEventStream start​(java.io.File file, org.xml.sax.ErrorHandler errorHandler)  
      PullableEventStream start​(java.io.InputStream inputStream, org.xml.sax.ErrorHandler errorHandler)  
      void stop()  
      • Methods inherited from class java.lang.Object

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

      • SaxPullAdapter

        public SaxPullAdapter​(org.xml.sax.EntityResolver resolver)
                       throws javax.xml.parsers.ParserConfigurationException,
                              org.xml.sax.SAXException
        Throws:
        javax.xml.parsers.ParserConfigurationException
        org.xml.sax.SAXException
      • SaxPullAdapter

        public SaxPullAdapter​(java.net.URL schemaURL)
                       throws javax.xml.parsers.ParserConfigurationException,
                              org.xml.sax.SAXException
        Throws:
        javax.xml.parsers.ParserConfigurationException
        org.xml.sax.SAXException
    • Method Detail

      • start

        public PullableEventStream start​(java.io.InputStream inputStream,
                                         org.xml.sax.ErrorHandler errorHandler)
                                  throws org.xml.sax.SAXException,
                                         java.lang.InterruptedException
        Throws:
        org.xml.sax.SAXException
        java.lang.InterruptedException
      • start

        public PullableEventStream start​(java.io.File file,
                                         org.xml.sax.ErrorHandler errorHandler)
                                  throws org.xml.sax.SAXException,
                                         java.lang.InterruptedException
        Throws:
        org.xml.sax.SAXException
        java.lang.InterruptedException
      • stop

        public void stop()