org.apache.jetspeed.webservices.finance.stockmarket
Class StockQuoteArrayHandler

java.lang.Object
  extended byorg.xml.sax.helpers.XMLFilterImpl
      extended byorg.apache.jetspeed.webservices.finance.stockmarket.StockQuoteArrayHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, org.xml.sax.XMLFilter, org.xml.sax.XMLReader

public class StockQuoteArrayHandler
extends org.xml.sax.helpers.XMLFilterImpl

SAX-based XML event handler (filter). Works with org.xml.sax.XMLReader to filter standard SAX events. This class maps the XML represention of a stock array into a java classes.

Version:
$Id: StockQuoteArrayHandler.java,v 1.3 2004/02/23 03:15:29 jford Exp $
Author:
David Sean Taylor

Constructor Summary
StockQuoteArrayHandler()
           
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
           
 StockQuote[] getResult()
           
 void setContentHandler(org.xml.sax.ContentHandler handler)
           
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)
           
 
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
endDocument, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, 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

StockQuoteArrayHandler

public StockQuoteArrayHandler()
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
Throws:
org.xml.sax.SAXException

endElement

public void endElement(java.lang.String uri,
                       java.lang.String localName,
                       java.lang.String qName)
                throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getResult

public StockQuote[] getResult()

setContentHandler

public void setContentHandler(org.xml.sax.ContentHandler handler)


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.