|
Venice 0.7beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mov.quote.YahooIDQuoteFilter
public class YahooIDQuoteFilter
Provides a filter to parse the Yahoo intra-day stock quote format. This format uses a date with the month name, prices are in dollars. The first column is the symbol, then the last quote, the time, change, open, high, low and then the volume. Example:
IBM,76.39,6/17/2005,4:02pm,-0.66,77.70,77.73,76.38,8594900
Constructor Summary | |
---|---|
YahooIDQuoteFilter()
Creates an instance of the filter. |
Method Summary | |
---|---|
java.lang.String |
getName()
Return the name of the filter. |
IDQuote |
toIDQuote(java.lang.String quoteLine)
Parse the given text string and returns the stock quote or null if it did not contain a valid quote. |
java.lang.String |
toString(IDQuote quote)
Convert the given stock quote to a string line. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public YahooIDQuoteFilter()
Method Detail |
---|
public java.lang.String getName()
getName
in interface IDQuoteFilter
public IDQuote toIDQuote(java.lang.String quoteLine) throws QuoteFormatException
toIDQuote
in interface IDQuoteFilter
quoteLine
- a single line of text containing a quote.
QuoteFormatException
- if the quote could not be parsedpublic java.lang.String toString(IDQuote quote)
toString
in interface IDQuoteFilter
quote
- a stock quote
|
Venice 0.7beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |