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.
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
public org.xml.sax.InputSource
resolveEntity (String
name , String
publicId ,
String
baseURI , String
systemId )
throws org.xml.sax.SAXException,
java.io.IOException; constant
// Methods Implementing LexicalHandler
public void
comment (char[ ]
ch , int
start , int
length )
throws org.xml.sax.SAXException; empty
public void
endCDATA ( ) throws org.xml.sax.SAXException; empty
public void
endDTD ( ) throws org.xml.sax.SAXException; empty
public void
endEntity (String
name ) throws org.xml.sax.SAXException; empty
public void
startCDATA ( ) throws org.xml.sax.SAXException; empty
public void
startDTD (String
name , String
publicId , String
systemId )
throws org.xml.sax.SAXException; empty
public void
startEntity (String
name ) throws org.xml.sax.SAXException; empty
}