Interface XMLDocumentSource

All Known Subinterfaces:
XMLDocumentFilter
All Known Implementing Classes:
DefaultFilter, HTMLScanner, HTMLTagBalancer, HTMLWriterFilter, NamespaceBinder

public interface XMLDocumentSource
Defines a document source. In other words, any object that implements this interface is able to emit document "events" to the registered document handler. These events could be produced by parsing an XML document, could be generated from some other source, or could be created programmatically. This interface does not say how the events are created, only that the implementor is able to emit them.
Author:
Andy Clark, IBM, Ronald Brill
  • Method Details

    • setDocumentHandler

      void setDocumentHandler(XMLDocumentHandler handler)
      Sets the document handler.
      Parameters:
      handler - the new document handler to receive events
    • getDocumentHandler

      XMLDocumentHandler getDocumentHandler()
      Returns the registered document handler.
      Returns:
      the document handler, or null if none is registered