Interface HTMLTagProcessor


  • @Deprecated
    public interface HTMLTagProcessor
    Deprecated.
    since 5.5.2
    Interface that needs to be implemented by every tag that is supported by HTMLWorker.
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      void endElement​(HTMLWorker worker, java.lang.String tag)
      Deprecated.
      Implement this class to tell the HTMLWorker what to do when an close tag is encountered.
      void startElement​(HTMLWorker worker, java.lang.String tag, java.util.Map<java.lang.String,​java.lang.String> attrs)
      Deprecated.
      Implement this class to tell the HTMLWorker what to do when an open tag is encountered.
    • Method Detail

      • startElement

        void startElement​(HTMLWorker worker,
                          java.lang.String tag,
                          java.util.Map<java.lang.String,​java.lang.String> attrs)
                   throws DocumentException,
                          java.io.IOException
        Deprecated.
        Implement this class to tell the HTMLWorker what to do when an open tag is encountered.
        Parameters:
        worker - the HTMLWorker
        tag - the tag that was encountered
        attrs - the current attributes of the tag
        Throws:
        DocumentException
        java.io.IOException
      • endElement

        void endElement​(HTMLWorker worker,
                        java.lang.String tag)
                 throws DocumentException
        Deprecated.
        Implement this class to tell the HTMLWorker what to do when an close tag is encountered.
        Parameters:
        worker - the HTMLWorker
        tag - the tag that was encountered
        Throws:
        DocumentException