org.crosswire.common.xml

## Class JDOMSAXEventProvider

- java.lang.Object
- - org.crosswire.common.xml.JDOMSAXEventProvider

- All Implemented Interfaces:
    SAXEventProvider

      public class JDOMSAXEventProvider
      extends Object
      implements SAXEventProvider

  A SAXEventProvider that provides SAX events from a JDOM Document.
  Author:
    Joe Walker
  See Also:
    `The GNU Lesser General Public License for details.`

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `private org.jdom2.Document` | `doc` The document to work from

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `JDOMSAXEventProvider(org.jdom2.Document doc)` Simple constructor

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `provideSAXEvents(ContentHandler handler)` When SAX events are required the user of this interface can call this method.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### doc

          private org.jdom2.Document doc

      The document to work from

  - ### Constructor Detail

    - #### JDOMSAXEventProvider

          public JDOMSAXEventProvider(org.jdom2.Document doc)

      Simple constructor
      Parameters:
        `doc` - the document

  - ### Method Detail

    - #### provideSAXEvents

          public void provideSAXEvents(ContentHandler handler)
                                throws SAXException

      Description copied from interface: `SAXEventProvider`
      When SAX events are required the user of this interface can call this method.
      Specified by:
        `provideSAXEvents` in interface `SAXEventProvider`
      Parameters:
        `handler` - The place to send SAX events.
      Throws:
        `SAXException` - when a SAX encounters a problem