Example usage for org.xml.sax SAXNotRecognizedException printStackTrace

List of usage examples for org.xml.sax SAXNotRecognizedException printStackTrace

Introduction

In this page you can find the example usage for org.xml.sax SAXNotRecognizedException printStackTrace.

Prototype

public void printStackTrace() 

Source Link

Document

Prints this throwable and its backtrace to the standard error stream.

Usage

From source file:gr.abiss.calipso.util.XmlUtils.java

private Parser createParser() {
    Parser parser = new Parser();
    try {/*from   w  ww  . j a va2s.c o m*/
        // see https://issues.apache.org/jira/browse/TIKA-599 
        parser.setProperty(Parser.schemaProperty, HTML_SCHEMA);
        parser.setFeature(Parser.ignoreBogonsFeature, true);
    } catch (SAXNotRecognizedException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    } catch (SAXNotSupportedException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
    return parser;
}