dods.clients.importwizard
Class EntryIDHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by dods.clients.importwizard.EntryIDHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class EntryIDHandler
extends DefaultHandler

This class is used by the SAX parser to turn an XML file containing tags into a Vector of Strings representing the IDs.


Constructor Summary
EntryIDHandler()
           
 
Method Summary
 void characters(char[] buf, int offset, int len)
           
 void endElement(String namespaceURI, String sName, String qName)
           
 Vector getIDs()
          Returns the Vector of IDs.
 void startElement(String namespaceURI, String lName, String qName, Attributes attrs)
           
 
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
 

Constructor Detail

EntryIDHandler

public EntryIDHandler()
Method Detail

startElement

public void startElement(String namespaceURI,
                         String lName,
                         String qName,
                         Attributes attrs)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class DefaultHandler
Throws:
SAXException

endElement

public void endElement(String namespaceURI,
                       String sName,
                       String qName)
                throws SAXException
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class DefaultHandler
Throws:
SAXException

characters

public void characters(char[] buf,
                       int offset,
                       int len)
                throws SAXException
Specified by:
characters in interface ContentHandler
Overrides:
characters in class DefaultHandler
Throws:
SAXException

getIDs

public Vector getIDs()
Returns the Vector of IDs.

Returns:
the Vector of IDs.