jgnash.net.security
Class AbstractYahooParser
java.lang.Object
jgnash.net.security.AbstractYahooParser
- All Implemented Interfaces:
- SecurityParser
- Direct Known Subclasses:
- YahooAusParser, YahooParser, YahooUKParser
public abstract class AbstractYahooParser
- extends java.lang.Object
- implements SecurityParser
An abstract CommodityParser for the Yahoo! financial web sites.
- Version:
- $Id$
- Author:
- Craig Cavanaugh
|
Field Summary |
private java.math.BigDecimal |
high
|
private static java.util.logging.Logger |
logger
|
private java.math.BigDecimal |
low
|
private java.math.BigDecimal |
price
|
private long |
volume
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
private static java.util.logging.Logger logger
volume
private long volume
price
private java.math.BigDecimal price
high
private java.math.BigDecimal high
low
private java.math.BigDecimal low
AbstractYahooParser
public AbstractYahooParser()
getVolume
public long getVolume()
- Specified by:
getVolume in interface SecurityParser
setVolume
private void setVolume(long volume)
getPrice
public java.math.BigDecimal getPrice()
- Specified by:
getPrice in interface SecurityParser
setPrice
private void setPrice(java.math.BigDecimal price)
getHigh
public java.math.BigDecimal getHigh()
- Specified by:
getHigh in interface SecurityParser
setHigh
private void setHigh(java.math.BigDecimal high)
getLow
public java.math.BigDecimal getLow()
- Specified by:
getLow in interface SecurityParser
setLow
private void setLow(java.math.BigDecimal low)
getBaseURL
protected abstract java.lang.String getBaseURL()
useISIN
protected abstract boolean useISIN()
parse
public boolean parse(SecurityNode node)
throws java.io.IOException
- Specified by:
parse in interface SecurityParser
- Throws:
java.io.IOException