edu.ucsb.nceas.metacat
Class DocInfoHandler

java.lang.Object
  |
  +--org.xml.sax.helpers.DefaultHandler
        |
        +--edu.ucsb.nceas.metacat.DocInfoHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class DocInfoHandler
extends org.xml.sax.helpers.DefaultHandler

A Class implementing callback bethods for the SAX parser to call when processing the XML messages from the replication handler


Constructor Summary
DocInfoHandler()
           
 
Method Summary
 void characters(char[] ch, int start, int length)
          put the content and the name of the tag into the hashtable.
 java.util.Hashtable getDocInfo()
           
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)
          capture the name of the tag.
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endElement, 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
 

Constructor Detail

DocInfoHandler

public DocInfoHandler()
Method Detail

startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes attributes)
                  throws org.xml.sax.SAXException
capture the name of the tag.
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws org.xml.sax.SAXException
put the content and the name of the tag into the hashtable. the name of the tag is the key.
Overrides:
characters in class org.xml.sax.helpers.DefaultHandler

getDocInfo

public java.util.Hashtable getDocInfo()


Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.