public class DomTreeBuilder extends DefaultHandler implements DomTree
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
bodyEnded |
protected boolean |
bodyStarted |
protected boolean |
documentEnded |
protected boolean |
documentStarted |
| Constructor and Description |
|---|
DomTreeBuilder() |
DomTreeBuilder(boolean combinePreSpacesIntoSingleToken) |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endDocument() |
void |
endElement(String uri,
String localName,
String qName) |
BodyNode |
getBodyNode() |
List<TextNode> |
getTextNodes() |
static boolean |
isDelimiter(char c) |
void |
startDocument() |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warningprotected boolean documentStarted
protected boolean documentEnded
protected boolean bodyStarted
protected boolean bodyEnded
public DomTreeBuilder()
public DomTreeBuilder(boolean combinePreSpacesIntoSingleToken)
public BodyNode getBodyNode()
getBodyNode in interface DomTreepublic List<TextNode> getTextNodes()
getTextNodes in interface DomTreepublic void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class DefaultHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class DefaultHandlerSAXExceptionpublic void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandlerSAXExceptionpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class DefaultHandlerSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class DefaultHandlerSAXExceptionpublic static boolean isDelimiter(char c)
Copyright © 2022. All rights reserved.