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

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

Introduction

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

Prototype

public StateController(final XMLParser parser, boolean isHTML) 

Source Link

Document

Constructs a StateController with the given parser.

Usage

From source file:pdfreader.XMLParser.java

License:Open Source License

/**
 * Constructs a XMLParser.//from  w  w  w .jav 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>();
}