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, warning
protected StringBuffer contentBuffer
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class DefaultHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultHandler
SAXException
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class DefaultHandler
SAXException
public String getContents()
public boolean hasContents()
public String getParent()
Copyright © 2011-2016 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.