Class EventModelParser

java.lang.Object
org.docx4j.org.apache.fop.events.model.EventModelParser

public final class EventModelParser extends Object
This is a parser for the event model XML.
  • Method Details

    • parse

      public static EventModel parse(Source src) throws TransformerException
      Parses an event model file into an EventModel instance.
      Parameters:
      src - the Source instance pointing to the XML file
      Returns:
      the created event model structure
      Throws:
      TransformerException - if an error occurs while parsing the XML file
    • getContentHandler

      public static ContentHandler getContentHandler(EventModel model)
      Creates a new ContentHandler instance that you can send the event model XML to. The parsed content is accumulated in the model structure.
      Parameters:
      model - the EventModel
      Returns:
      the ContentHandler instance to receive the SAX stream from the XML file