Name

EntityResolver2

Synopsis

This extension interface provides alternative entity resolver methods. If you register an entity resolver that implements this interface, if the SAX implementation supports this interface, and you set the feature “http://xml.org/sax/features/use-entity-resolver2” to true, then the implementation will use the methods defined by this interface instead of the method defined by the super-interface.

org.xml.sax.ext.EntityResolver2

Figure 22-10. org.xml.sax.ext.EntityResolver2

public interface EntityResolver2 extends org.xml.sax.EntityResolver {
// Public Instance Methods
     org.xml.sax.InputSource getExternalSubset(String name, String baseURI) 
throws org.xml.sax.SAXException, java.io.IOException;  
     org.xml.sax.InputSource resolveEntity(String name, String publicId, 
        String baseURI, String systemId) 
        throws org.xml.sax.SAXException, java.io.IOException;  
}

Implementations

DefaultHandler2

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.