Example usage for javax.xml.parsers SAXParser getClass

List of usage examples for javax.xml.parsers SAXParser getClass

Introduction

In this page you can find the example usage for javax.xml.parsers SAXParser getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:org.smartfrog.services.xml.test.system.XmlParserTest.java

/**
 * as crimson is so common, we skip this test
 *
 * @throws SAXException/*from   w  w  w . j a  v a 2s .  c o  m*/
 * @throws ParserConfigurationException
 */
public void testSaxParserExists() throws SAXException, ParserConfigurationException {
    SAXParserFactory factory = SAXParserFactory.newInstance();
    assertNotNull("Sax parser factory", factory);
    SAXParser parser = factory.newSAXParser();
    assertNotNull("Sax parser ", parser);
    logger.info("Sax 1 Parser=" + parser.getClass().getName());
}