jgnash.net.currency
Class YahooParser
java.lang.Object
jgnash.net.currency.YahooParser
- All Implemented Interfaces:
- CurrencyParser
public class YahooParser
- extends java.lang.Object
- implements CurrencyParser
A CurrencyParser for the Yahoo finance site.
- Version:
- $Id$
- Author:
- Craig Cavanaugh
|
Field Summary |
private java.net.URLConnection |
connection
|
private java.math.BigDecimal |
result
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
result
private java.math.BigDecimal result
connection
private java.net.URLConnection connection
YahooParser
public YahooParser()
parse
public boolean parse(java.lang.String source,
java.lang.String target)
- Specified by:
parse in interface CurrencyParser
getConnection
public java.net.URLConnection getConnection()
- Specified by:
getConnection in interface CurrencyParser
getConversion
public java.math.BigDecimal getConversion()
- Specified by:
getConversion in interface CurrencyParser