org.xml.sax.ext
public class DefaultHandler2 extends DefaultHandler implements LexicalHandler, DeclHandler, EntityResolver2
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.
Since: SAX 2.0 (extensions 1.1 alpha)
Version: TBS
Constructor Summary | |
---|---|
DefaultHandler2() Constructs a handler which ignores all parsing events. |
Method Summary | |
---|---|
void | attributeDecl(String eName, String aName, String type, String mode, String value) |
void | comment(char[] ch, int start, int length) |
void | elementDecl(String name, String model) |
void | endCDATA() |
void | endDTD() |
void | endEntity(String name) |
void | externalEntityDecl(String name, String publicId, String systemId) |
InputSource | getExternalSubset(String name, String baseURI)
Tells the parser that if no external subset has been declared
in the document text, none should be used. |
void | internalEntityDecl(String name, String value) |
InputSource | resolveEntity(String name, String publicId, String baseURI, String systemId)
Tells the parser to resolve the systemId against the baseURI
and read the entity text from that resulting absolute URI.
|
void | startCDATA() |
void | startDTD(String name, String publicId, String systemId) |
void | startEntity(String name) |
DefaultHandler.resolveEntity()
,
rather than only one of them, so that no matter what kind of SAX2
parser you use, it will have an appropriate entity resolution policy.Source code is under GPL (with library exception) in the JAXP project at http://www.gnu.org/software/classpathx/jaxp
This documentation was derived from that source code on 2011-08-26.