Skip to Content
Java in a Nutshell, 5th Edition
book

Java in a Nutshell, 5th Edition

by David Flanagan
March 2005
Intermediate to advanced
1254 pages
104h 21m
English
O'Reilly Media, Inc.
Content preview from Java in a Nutshell, 5th Edition

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
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java in a Nutshell, 8th Edition

Java in a Nutshell, 8th Edition

Benjamin J. Evans, Jason Clark, David Flanagan
Java in a Nutshell, 7th Edition

Java in a Nutshell, 7th Edition

Benjamin J. Evans, David Flanagan
Learning Java, 5th Edition

Learning Java, 5th Edition

Marc Loy, Patrick Niemeyer, Daniel Leuck
Learning Java, 4th Edition

Learning Java, 4th Edition

Patrick Niemeyer, Daniel Leuck

Publisher Resources

ISBN: 0596007736Supplemental ContentErrata Page