Venice 0.751beta

nz.org.venice.quote
Class MetastockBinaryEODFilter

java.lang.Object
  extended bynz.org.venice.quote.MetastockBinaryEODFilter
All Implemented Interfaces:
EODQuoteFilter, IFileEODQuoteFilter

public class MetastockBinaryEODFilter
extends java.lang.Object
implements IFileEODQuoteFilter


Constructor Summary
MetastockBinaryEODFilter()
           
 
Method Summary
 IFileEODQuoteImport getImporter(Report report)
          Return the an instance of the importer.
 java.lang.String getName()
          Return the name of the filter.
 EODQuote toEODQuote(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(EODQuote 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

MetastockBinaryEODFilter

public MetastockBinaryEODFilter()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: EODQuoteFilter
Return the name of the filter.

Specified by:
getName in interface EODQuoteFilter
Returns:
the name of the filter

toEODQuote

public EODQuote toEODQuote(java.lang.String quoteLine)
                    throws QuoteFormatException
Description copied from interface: EODQuoteFilter
Parse the given text string and returns the stock quote or null if it did not contain a valid quote.

Specified by:
toEODQuote in interface EODQuoteFilter
Parameters:
quoteLine - a single line of text containing a quote.
Returns:
the stock quote
Throws:
QuoteFormatException - if the quote could not be parsed

toString

public java.lang.String toString(EODQuote quote)
Description copied from interface: EODQuoteFilter
Convert the given stock quote to a string line.

Specified by:
toString in interface EODQuoteFilter
Parameters:
quote - a stock quote
Returns:
string version of the quote

getImporter

public IFileEODQuoteImport getImporter(Report report)
Description copied from interface: IFileEODQuoteFilter
Return the an instance of the importer.

Specified by:
getImporter in interface IFileEODQuoteFilter
Returns:
the instance of the importer

Venice 0.751beta