| java.lang.Object org.xml.sax.helpers.DefaultHandler org.xml.sax.ext.DefaultHandler2
DefaultHandler2 | public class DefaultHandler2 extends DefaultHandler implements LexicalHandler,DeclHandler,EntityResolver2(Code) | | This class extends the SAX2 base handler class to support the
SAX2
LexicalHandler ,
DeclHandler , and
EntityResolver2 extensions. Except for overriding the
original SAX1
DefaultHandler.resolveEntity 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.
since: SAX 2.0 (extensions 1.1 alpha) author: David Brownell version: TBS |
Constructor Summary | |
public | DefaultHandler2() Constructs a handler which ignores all parsing events. |
Method Summary | |
public void | attributeDecl(String eName, String aName, String type, String mode, String value) | public void | comment(char ch, int start, int length) | public void | elementDecl(String name, String model) | public void | endCDATA() | public void | endDTD() | public void | endEntity(String name) | public void | externalEntityDecl(String name, String publicId, String systemId) | public 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. | public void | internalEntityDecl(String name, String value) | public 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. | public InputSource | resolveEntity(String publicId, String systemId) Invokes
EntityResolver2.resolveEntity EntityResolver2.resolveEntity() with null entity name and base URI. | public void | startCDATA() | public void | startDTD(String name, String publicId, String systemId) | public void | startEntity(String name) |
DefaultHandler2 | public DefaultHandler2()(Code) | | Constructs a handler which ignores all parsing events.
|
resolveEntity | public InputSource resolveEntity(String name, String publicId, String baseURI, String systemId) throws SAXException, IOException(Code) | | 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 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.
|
Methods inherited from org.xml.sax.helpers.DefaultHandler | public void characters(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void endDocument() throws SAXException(Code)(Java Doc) public void endElement(String uri, String localName, String qName) throws SAXException(Code)(Java Doc) public void endPrefixMapping(String prefix) throws SAXException(Code)(Java Doc) public void error(SAXParseException e) throws SAXException(Code)(Java Doc) public void fatalError(SAXParseException e) throws SAXException(Code)(Java Doc) public void ignorableWhitespace(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void notationDecl(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc) public void processingInstruction(String target, String data) throws SAXException(Code)(Java Doc) public InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException(Code)(Java Doc) public void setDocumentLocator(Locator locator)(Code)(Java Doc) public void skippedEntity(String name) throws SAXException(Code)(Java Doc) public void startDocument() throws SAXException(Code)(Java Doc) public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException(Code)(Java Doc) public void startPrefixMapping(String prefix, String uri) throws SAXException(Code)(Java Doc) public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException(Code)(Java Doc) public void warning(SAXParseException e) throws SAXException(Code)(Java Doc)
|
|
|