Home » xml-commons-external-1.4.01-src » org.xml » sax » ext » [javadoc | source]
public class: DefaultHandler2 [javadoc | source]

All Implemented Interfaces:
    DeclHandler, EntityResolver2, LexicalHandler, ContentHandler, DTDHandler, ErrorHandler, EntityResolver

This class extends the SAX2 base handler class to support the SAX2 LexicalHandler , DeclHandler , and EntityResolver2 extensions. Except for overriding the original SAX1 resolveEntity() method the added handler methods just return. Subclassers may override everything on a method-by-method basis.
This module, both source code and documentation, is in the Public Domain, and comes with NO WARRANTY.

Note: this class might yet learn that the ContentHandler.setDocumentLocator() call might be passed a Locator2 object, and that the ContentHandler.startElement() call might be passed a Attributes2 object.

 public DefaultHandler2() 
Method from org.xml.sax.ext.DefaultHandler2 Summary:
attributeDecl,   comment,   elementDecl,   endCDATA,   endDTD,   endEntity,   externalEntityDecl,   getExternalSubset,   internalEntityDecl,   resolveEntity,   resolveEntity,   startCDATA,   startDTD,   startEntity
Methods from org.xml.sax.helpers.DefaultHandler:
characters,   endDocument,   endElement,   endPrefixMapping,   error,   fatalError,   ignorableWhitespace,   notationDecl,   processingInstruction,   resolveEntity,   setDocumentLocator,   skippedEntity,   startDocument,   startElement,   startPrefixMapping,   unparsedEntityDecl,   warning
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.xml.sax.ext.DefaultHandler2 Detail:
 public  void attributeDecl(String eName,
    String aName,
    String type,
    String mode,
    String value) throws SAXException 
 public  void comment(char[] ch,
    int start,
    int length) throws SAXException 
 public  void elementDecl(String name,
    String model) throws SAXException 
 public  void endCDATA() throws SAXException 
 public  void endDTD() throws SAXException 
 public  void endEntity(String name) throws SAXException 
 public  void externalEntityDecl(String name,
    String publicId,
    String systemId) throws SAXException 
 public InputSource getExternalSubset(String name,
    String baseURI) throws SAXException, IOException 
    Tells the parser that if no external subset has been declared in the document text, none should be used.
 public  void internalEntityDecl(String name,
    String value) throws SAXException 
 public InputSource resolveEntity(String publicId,
    String systemId) throws SAXException, IOException 
 public InputSource resolveEntity(String name,
    String publicId,
    String baseURI,
    String systemId) throws SAXException, IOException 
    Tells the parser to resolve the systemId against the baseURI and read the entity text from that resulting absolute URI. Note that because the older DefaultHandler.resolveEntity() , method is overridden to call this one, this method may sometimes be invoked with null name and baseURI, and with the systemId already absolutized.
 public  void startCDATA() throws SAXException 
 public  void startDTD(String name,
    String publicId,
    String systemId) throws SAXException 
 public  void startEntity(String name) throws SAXException