gnu.xml.pipeline
public static class DomConsumer.Handler extends Object implements ContentHandler, LexicalHandler, DTDHandler, DeclHandler
Note that if this ever throws a DOMException (runtime exception) that will indicate a bug in the DOM (e.g. doesn't support something per specification) or the parser (e.g. emitted an illegal name, or accepted illegal input data).
Field Summary | |
---|---|
protected DomConsumer | consumer |
Constructor Summary | |
---|---|
protected | Handler(DomConsumer consumer)
Subclasses may use SAX2 events to provide additional
behaviors in the resulting DOM. |
Method Summary | |
---|---|
void | attributeDecl(String eName, String aName, String type, String mode, String value) |
boolean | canPopulateEntityRefs()
May be overridden by subclasses to return true, indicating
that entity reference nodes can be populated and then made
read-only. |
void | characters(char[] ch, int start, int length) |
void | comment(char[] ch, int start, int length) |
protected Text | createText(boolean isCDATA, char[] ch, int start, int length)
Subclasses may overrride this method to provide a more efficient
way to construct text nodes.
|
void | elementDecl(String name, String model) |
void | endCDATA() |
void | endDocument() |
void | endDTD() |
void | endElement(String uri, String localName, String qName) |
void | endEntity(String name) |
void | endPrefixMapping(String prefix) |
void | externalEntityDecl(String name, String publicId, String SystemId) |
protected Document | getDocument()
Returns the document under construction. |
protected Node | getTop()
Returns the current node being populated. |
void | ignorableWhitespace(char[] ch, int start, int length) |
void | internalEntityDecl(String name, String value) |
void | notationDecl(String name, String publicId, String SystemId) |
void | processingInstruction(String target, String data) |
void | setDocumentLocator(Locator locator) |
void | skippedEntity(String name) |
void | startCDATA() |
void | startDocument() |
void | startDTD(String name, String publicId, String SystemId) |
void | startElement(String uri, String localName, String qName, Attributes atts) |
void | startEntity(String name) |
void | startPrefixMapping(String prefix, String uri) |
void | unparsedEntityDecl(String name, String publicId, String SystemId, String notationName) |
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 2013-01-12.