Venice 0.7beta

org.mov.quote
Class FileEODQuoteImport

java.lang.Object
  extended by org.mov.quote.FileEODQuoteImport

public class FileEODQuoteImport
extends java.lang.Object

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.

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.

Returns:
list of quotes

isNext

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

Returns:
TRUE if there are more quotes to import; FALSE otherwise.

close

public void close()
Close the file being imported.


Venice 0.7beta