Example usage for com.itextpdf.tool.xml.parser XMLParserListener text

List of usage examples for com.itextpdf.tool.xml.parser XMLParserListener text

Introduction

In this page you can find the example usage for com.itextpdf.tool.xml.parser XMLParserListener text.

Prototype

void text(String text);

Source Link

Document

Called when text is encountered.

Usage

From source file:pdfreader.XMLParser.java

License:Open Source License

/**
 * Call this method to submit the text to listeners.
 *//*from  w w  w .  j a  va 2s  .c o  m*/
private void callText() {
    if (null != text && text.length() > 0) {
        // LOGGER .log(text);
        for (XMLParserListener l : listeners) {
            l.text(text);
        }
        text = null;
    }
}