Package io.odysz.module.xtable
Class XMLFlatReader
java.lang.Object
org.xml.sax.helpers.DefaultHandler
io.odysz.module.xtable.XMLFlatReader
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
Flat XML data structure handler.
- Author:
- Odysseus Zhou
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] buf, int offset, int len) void
endElement
(String namespaceURI, String sName, String qName) void
startElement
(String namespaceURI, String localName, String qname, Attributes attributes) Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
Tag
- See Also:
-
rootTag
-
tableTag
-
recordTag
-
tables
[key = tableID, value = XMLTable[qName, chars]] -
currV
-
maybeMore
protected boolean maybeMore
-
-
Constructor Details
-
XMLFlatReader
-
-
Method Details
-
getTables
-
startElement
public void startElement(String namespaceURI, String localName, String qname, Attributes attributes) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Throws:
SAXException
-
characters
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
- Throws:
SAXException
-
getTable
-