com.itextpdf.text.html.simpleparser
Interface HTMLTagProcessor


public interface HTMLTagProcessor

Interface that needs to be implemented by every tag that is supported by HTMLWorker.

Since:
5.0.6

Method Summary
 void endElement(HTMLWorker worker, String tag)
          Implement this class to tell the HTMLWorker what to do when an close tag is encountered.
 void startElement(HTMLWorker worker, String tag, Map<String,String> attrs)
          Implement this class to tell the HTMLWorker what to do when an open tag is encountered.
 

Method Detail

startElement

void startElement(HTMLWorker worker,
                  String tag,
                  Map<String,String> attrs)
                  throws DocumentException,
                         IOException
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
IOException

endElement

void endElement(HTMLWorker worker,
                String tag)
                throws DocumentException
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