org.oreodata.xml
Class XMLFieldHandler
java.lang.Object
|
+--org.xml.sax.helpers.DefaultHandler
|
+--org.oreodata.xml.HierarchicalHandler
|
+--org.oreodata.xml.XMLFieldHandler
- All Implemented Interfaces:
- org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
- public class XMLFieldHandler
- extends HierarchicalHandler
A SAX Event handler that takes over when a parent handler
realizes that we have a field within a record. This handler
then fills the field on the basis of the
SAX events it receives. This handler only handles
a single field stored as CDATA with no nested XML elements.
- Author:
- Jonathan Revusky
Method Summary |
void |
characters(char[] ch,
int start,
int length)
|
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
|
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLFieldHandler
public XMLFieldHandler(HierarchicalHandler parent,
Record record,
FieldDescriptor field)
endElement
public void endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
- Specified by:
endElement
in interface org.xml.sax.ContentHandler
- Overrides:
endElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
characters
public void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
- Specified by:
characters
in interface org.xml.sax.ContentHandler
- Overrides:
characters
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException