Example usage for com.itextpdf.text.html.simpleparser HTMLTagProcessor endElement

List of usage examples for com.itextpdf.text.html.simpleparser HTMLTagProcessor endElement

Introduction

In this page you can find the example usage for com.itextpdf.text.html.simpleparser HTMLTagProcessor endElement.

Prototype

public abstract void endElement(HTMLWorker worker, String tag) throws DocumentException;

Source Link

Document

Implement this class to tell the HTMLWorker what to do when an close tag is encountered.

Usage

From source file:com.masscustsoft.service.ToPdf.java

License:Open Source License

/**
 * @see com.itextpdf.text.xml.simpleparser.SimpleXMLDocHandler#endElement(java.lang.String)
 *///from   ww  w  . j  a v a 2  s.  c  om
public void endElement(final String tag) {
    HTMLTagProcessor htmlTag = tags.get(tag);
    if (htmlTag == null) {
        return;
    }
    // process the tag
    try {
        htmlTag.endElement(this, tag);
    } catch (DocumentException e) {
        throw new ExceptionConverter(e);
    }
}