Class DefaultTagHandler

    • Constructor Detail

      • DefaultTagHandler

        public DefaultTagHandler()
    • Method Detail

      • beginHandling

        public void beginHandling​(java.lang.String uri,
                                  java.lang.String localName,
                                  java.lang.String qName,
                                  org.xml.sax.Attributes atts)
        Description copied from interface: TagHandler
        Callback to signal the start of handling giving the tag handler a chance for running intialization routines.

        TagHandlers are registered against tag+attribute combination and are invoked by the HTMLContentHandler as and when it encounters a tag matching the tag attribute combination the tag handler is registered with.

        Specified by:
        beginHandling in interface TagHandler
        Overrides:
        beginHandling in class AbstractTagHandler
      • endHandling

        public void endHandling​(java.lang.String uri,
                                java.lang.String localName,
                                java.lang.String qName)
        Description copied from interface: TagHandler
        Callback to signal the end of handling giving the tag handler a chance for finalizing things.

        This is arguably the last callback a tag handler receives. After this, the current tag handler is popped out from the chain and the subsequent Tika events are directed to preceding tag handlers.

        Specified by:
        endHandling in interface TagHandler
        Overrides:
        endHandling in class AbstractTagHandler