public class DnodeParser extends DefaultHandler
| Constructor and Description |
|---|
DnodeParser() |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length)
append the node content.
|
void |
endElement(String uri,
String localName,
String qName)
process the endElement.
|
Dnode |
getRoot()
Return the root node of the DContent tree.
|
boolean |
isTrimWhitespace()
If true then trim the whitespace from the content.
|
void |
setNodeClass(Class<?> nodeClass)
Set the type class of node to be created.
|
void |
setTrimWhitespace(boolean trimWhitespace)
Set whether to trim whitespace from the content.
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
process a startElement.
|
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningpublic boolean isTrimWhitespace()
public void setTrimWhitespace(boolean trimWhitespace)
public Dnode getRoot()
public void setNodeClass(Class<?> nodeClass)
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandlerSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class DefaultHandlerSAXExceptionpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class DefaultHandlerSAXExceptionCopyright © 2014. All Rights Reserved.