Venice 0.751beta

nz.org.venice.quote
Class FileEODQuoteImport

java.lang.Object
  extended bynz.org.venice.quote.FileEODQuoteImport
All Implemented Interfaces:
IFileEODQuoteImport

public class FileEODQuoteImport
extends java.lang.Object
implements IFileEODQuoteImport

Import quotes from files into Venice or export them to files.

Author:
Andrew Leppard
See Also:
ImportQuoteModule, YahooEODQuoteImport

Constructor Summary
FileEODQuoteImport(Report report, EODQuoteFilter filter)
          Create a new object to import quotes.
 
Method Summary
 void close()
          Close the file being imported.
 java.util.List importNext()
          Import the next bundle quotes from the file.
 boolean isNext()
          Return whether there are any more quotes in the file.
 boolean open(java.io.File file)
          Open the given file to import.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileEODQuoteImport

public FileEODQuoteImport(Report report,
                          EODQuoteFilter filter)
Create a new object to import quotes. Write any errors or warnings to the given report file and use the given quote filter.

Parameters:
report - the report
filter - the quote filter
Method Detail

open

public boolean open(java.io.File file)
Open the given file to import.

Specified by:
open in interface IFileEODQuoteImport
Parameters:
file - the file to import
Returns:
TRUE if the file was successfully opened;\ FALSE otherwise.

importNext

public java.util.List importNext()
Import the next bundle quotes from the file.

Specified by:
importNext in interface IFileEODQuoteImport
Returns:
list of quotes

isNext

public boolean isNext()
Return whether there are any more quotes in the file.

Specified by:
isNext in interface IFileEODQuoteImport
Returns:
TRUE if there are more quotes to import; FALSE otherwise.

close

public void close()
Close the file being imported.

Specified by:
close in interface IFileEODQuoteImport

Venice 0.751beta