Class SyntheticXMLReader.EventCarrier

  • Enclosing class:
    SyntheticXMLReader

    public abstract class SyntheticXMLReader.EventCarrier
    extends Object
    Base class for a closure carrying one or more SAX events.

    Only toSAX() needs to be provided by an implementing class. It can use content(), dtd(), entity(), err(), decl(), and lex() to obtain the various SAX handlers onto which it should disgorge events. Those methods never return null; a no-op handler will be returned if the consumer code did not register a handler of the corresponding type.

    Additional convenience methods are provided for generating the most common SAX parse events.