Package edu.ucsb.nceas.metacat
Class CatalogMessageHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
edu.ucsb.nceas.metacat.CatalogMessageHandler
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
A Class implementing callback bethods for the SAX parser to
call when processing the XML messages from the replication handler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) Take the data out of the docid and date_updated fieldsvoid
endElement
(String uri, String localName, String qName) This method write the indivUpdate to updates when it finds the end ofvoid
startElement
(String uri, String localName, String qName, Attributes attributes) This method starts a new vector for each updatedDocument tag.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
-
Constructor Details
-
CatalogMessageHandler
public CatalogMessageHandler()
-
-
Method Details
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException This method starts a new vector for each updatedDocument tag.- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
endElement
This method write the indivUpdate to updates when it finds the end of- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Throws:
SAXException
-
characters
Take the data out of the docid and date_updated fields- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
- Throws:
SAXException
-
getCatalogVect
-