Example usage for org.xml.sax XMLReader getProperty

List of usage examples for org.xml.sax XMLReader getProperty

Introduction

In this page you can find the example usage for org.xml.sax XMLReader getProperty.

Prototype

public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException;

Source Link

Document

Look up the value of a property.

Usage

From source file:org.exist.util.XMLReaderPool.java

private Object getReaderProperty(XMLReader xmlReader, String propertyName) {

    Object object = null;/*  ww w .  j  a  va  2s . c om*/
    try {
        object = xmlReader.getProperty(propertyName);

    } catch (final SAXNotRecognizedException ex) {
        LOG.error("SAXNotRecognizedException: " + ex.getMessage());

    } catch (final SAXNotSupportedException ex) {
        LOG.error("SAXNotSupportedException:" + ex.getMessage());
    }
    return object;
}