public class DOMBuilder extends SmooksContentHandler
Constructor and Description |
---|
DOMBuilder(ExecutionContext execContext) |
DOMBuilder(ExecutionContext execContext,
SmooksContentHandler parentContentHandler) |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
cleanup() |
void |
comment(char[] ch,
int start,
int length) |
void |
endCDATA() |
void |
endDocument() |
void |
endElement(EndElementEvent endEvent) |
void |
endEntity(String name) |
Document |
getDocument()
Get the Document node of the document into which this handler
is parsing.
|
void |
ignorableWhitespace(char[] ch,
int start,
int length) |
void |
setAppendElement(Element appendElement)
Set the DOM Element node on which the parsed content it to be added.
|
void |
startCDATA() |
void |
startDocument() |
void |
startDTD(String name,
String publicId,
String systemId) |
void |
startElement(StartElementEvent startEvent) |
void |
startEntity(String name) |
detachHandler, endElement, getExecutionContext, getHandler, getNamespaceDeclarationStack, getNestedContentHandler, getParentContentHandler, replay, replayStartElement, resetNestedContentHandler, startElement
attributeDecl, elementDecl, endDTD, externalEntityDecl, getExternalSubset, internalEntityDecl, resolveEntity, resolveEntity
endPrefixMapping, error, fatalError, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
public DOMBuilder(ExecutionContext execContext)
public DOMBuilder(ExecutionContext execContext, SmooksContentHandler parentContentHandler)
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class DefaultHandler
SAXException
public Document getDocument()
public void setAppendElement(Element appendElement)
appendElement
- The append DOM element.public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class DefaultHandler
SAXException
public void startElement(StartElementEvent startEvent) throws SAXException
startElement
in class SmooksContentHandler
SAXException
public void endElement(EndElementEvent endEvent) throws SAXException
endElement
in class SmooksContentHandler
SAXException
public void cleanup()
cleanup
in class SmooksContentHandler
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultHandler
SAXException
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
ignorableWhitespace
in interface ContentHandler
ignorableWhitespace
in class DefaultHandler
SAXException
public void startCDATA() throws SAXException
startCDATA
in interface LexicalHandler
startCDATA
in class DefaultHandler2
SAXException
public void endCDATA() throws SAXException
endCDATA
in interface LexicalHandler
endCDATA
in class DefaultHandler2
SAXException
public void comment(char[] ch, int start, int length) throws SAXException
comment
in interface LexicalHandler
comment
in class DefaultHandler2
SAXException
public void startEntity(String name) throws SAXException
startEntity
in interface LexicalHandler
startEntity
in class DefaultHandler2
SAXException
public void endEntity(String name) throws SAXException
endEntity
in interface LexicalHandler
endEntity
in class DefaultHandler2
SAXException
public void startDTD(String name, String publicId, String systemId) throws SAXException
startDTD
in interface LexicalHandler
startDTD
in class DefaultHandler2
SAXException
Copyright © 2020. All rights reserved.