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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) Take the data out of the docid and date_updated fieldsvoidendElement(String uri, String localName, String qName) This method write the indivUpdate to updates when it finds the end ofvoidstartElement(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, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
endElement
This method write the indivUpdate to updates when it finds the end of- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Throws:
SAXException
-
characters
Take the data out of the docid and date_updated fields- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler- Throws:
SAXException
-
getCatalogVect
-