Name

DefaultHandler2

Synopsis

This class extends org.xml.sax.helpers.DefaultHandler to add no-op methods that implement the LexicalHandler, DeclHandler, and EntityResolver2 methods. It overrides the two-argument version of resolveEntity from the core EntityResolver interface to invoke the four-argument version from the EntityResolver2 interface.

org.xml.sax.ext.DefaultHandler2

Figure 22-9. org.xml.sax.ext.DefaultHandler2

public class DefaultHandler2 extends org.xml.sax.helpers.DefaultHandler
 implements DeclHandler, EntityResolver2, LexicalHandler {
// Public Constructors
     public DefaultHandler2( );  
// Methods Implementing DeclHandler
     public void attributeDecl(String eName, String aName, String type, 
        String mode, String value) 
        throws org.xml.sax.SAXException;     emDpty
     public void elementDecl(String name, String model) 
        throws org.xml.sax.SAXException;     empty
     public void externalEntityDecl(String name, String publicId, String systemId) 
        throws org.xml.sax.SAXException;     empty
     public void internalEntityDecl(String name, String value) 
        throws org.xml.sax.SAXException;     empty
                  // Methods Implementing EntityResolver
     public org.xml.sax.InputSource resolveEntity(String publicId, String systemId) 
        throws org.xml.sax.SAXException, java.io.IOException;  
// Methods Implementing EntityResolver2
     public org.xml.sax.InputSource getExternalSubset(String name, String baseURI) 
        throws org.xml.sax.SAXException, java.io.IOException;     constant

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.