org.jscience.economics.money.providers
Class YahooChangeSource

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

public class YahooChangeSource
extends javax.swing.text.html.HTMLEditorKit.ParserCallback
implements ChangeSource

Implementation of ConvertSource for Yahoo Finance.


Field Summary
 
Fields inherited from class javax.swing.text.html.HTMLEditorKit.ParserCallback
IMPLIED
 
Constructor Summary
YahooChangeSource()
           
 
Method Summary
 float getConverted(float amount, Currency source, Currency target)
          DOCUMENT ME!
 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!
 
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

YahooChangeSource

public YahooChangeSource()
Method Detail

getConverted

public float getConverted(float amount,
                          Currency source,
                          Currency target)
                   throws UnavailableDataException
DOCUMENT ME!

Specified by:
getConverted in interface ChangeSource
Parameters:
amount - DOCUMENT ME!
source - DOCUMENT ME!
target - 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!