org.jscience.economics.money.providers
Class YahooSymbolSource

java.lang.Object
  extended by javax.swing.text.html.HTMLEditorKit.ParserCallback
      extended by org.jscience.economics.money.providers.YahooSymbolSource
All Implemented Interfaces:
SymbolSource

public class YahooSymbolSource
extends javax.swing.text.html.HTMLEditorKit.ParserCallback
implements SymbolSource

A class to search for symbols on Yahoo Finance. Results are returned as a linked list of SearchHits


Field Summary
 
Fields inherited from class javax.swing.text.html.HTMLEditorKit.ParserCallback
IMPLIED
 
Constructor Summary
YahooSymbolSource()
           
 
Method Summary
 void handleStartTag(javax.swing.text.html.HTML.Tag t, javax.swing.text.MutableAttributeSet a, int pos)
          DOCUMENT ME!
 void handleText(char[] data, int pos)
          DOCUMENT ME!
 java.util.Set search(java.lang.String expression)
          DOCUMENT ME!
 
Methods inherited from class javax.swing.text.html.HTMLEditorKit.ParserCallback
flush, handleComment, handleEndOfLineString, handleEndTag, handleError, handleSimpleTag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YahooSymbolSource

public YahooSymbolSource()
Method Detail

search

public java.util.Set search(java.lang.String expression)
                     throws UnavailableDataException
DOCUMENT ME!

Specified by:
search in interface SymbolSource
Parameters:
expression - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
UnavailableDataException - DOCUMENT ME!

handleStartTag

public void handleStartTag(javax.swing.text.html.HTML.Tag t,
                           javax.swing.text.MutableAttributeSet a,
                           int pos)
DOCUMENT ME!

Overrides:
handleStartTag in class javax.swing.text.html.HTMLEditorKit.ParserCallback
Parameters:
t - DOCUMENT ME!
a - DOCUMENT ME!
pos - DOCUMENT ME!

handleText

public void handleText(char[] data,
                       int pos)
DOCUMENT ME!

Overrides:
handleText in class javax.swing.text.html.HTMLEditorKit.ParserCallback
Parameters:
data - DOCUMENT ME!
pos - DOCUMENT ME!