Java In A Nutshell, 5th Edition

EntityResolver2 org.xml.sax.ext

Java 5.0

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.

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

Категории