Example usage for org.xml.sax EntityResolver getClass

List of usage examples for org.xml.sax EntityResolver getClass

Introduction

In this page you can find the example usage for org.xml.sax EntityResolver getClass.

Prototype

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

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:org.topazproject.xml.transform.EntityResolvingSource.java

/**
 * Construct a new EntityResolvingSource object.
 *
 * @param src is the source of the XML document
 * @param resolver is the custom resolver
 * @throws SAXException if we're unable to create an XMLReader (Should never happen
 *         unless there is a serious initialization problem that is likely the result
 *         of a mis-configuration of the JDK. Multiple errors will likely be logged.)
 *///from w w w  . java 2s.  c  o m
public EntityResolvingSource(InputSource src, EntityResolver resolver) throws SAXException {
    super(createXMLReader(resolver), src);
    if (log.isDebugEnabled())
        log.debug("Created " + this.getClass().getName() + " w/" + resolver.getClass().getName());
}