Example usage for com.itextpdf.tool.xml.parser XMLParserMemory XMLParserMemory

List of usage examples for com.itextpdf.tool.xml.parser XMLParserMemory XMLParserMemory

Introduction

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

Prototype

public XMLParserMemory(boolean isHtml) 

Source Link

Usage

From source file:pdfreader.XMLParser.java

License:Open Source License

/**
 * Constructs a XMLParser.//from w  ww.j  av  a 2 s  .co m
 *
 * @param isHtml  false if this parser is not going to parse HTML and
 *                whitespace should be submitted as text too.
 * @param charset charset
 */
public XMLParser(final boolean isHtml, final Charset charset) {
    this.charset = charset;
    this.controller = new StateController(this, isHtml);
    controller.unknown();
    memory = new XMLParserMemory(isHtml);
    listeners = new CopyOnWriteArrayList<XMLParserListener>();
}