protected class XMLDumpParser.XMLDumpHandler extends DefaultHandler
| Modifier and Type | Field and Description |
|---|---|
protected StringBuffer |
contentBuffer |
protected Stack<String> |
tags |
| Modifier | Constructor and Description |
|---|---|
protected |
XMLDumpHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endDocument() |
void |
endElement(String uri,
String localName,
String qName) |
String |
getContents()
Returns the contents of the currently active XML element.
|
String |
getParent()
Returns the XML tag name of the parent of the currently active
XML element.
|
boolean |
hasContents()
Returns whether there is a non-empty content within the currently
active XML element.
|
void |
startDocument() |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warningprotected StringBuffer contentBuffer
public void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class DefaultHandlerSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters 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 endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class DefaultHandlerSAXExceptionpublic String getContents()
public boolean hasContents()
public String getParent()
Copyright © 2011-2016 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.