Venice 0.751beta

nz.org.venice.quote
Class MetastockBinaryEODImport

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

public class MetastockBinaryEODImport
extends java.lang.Object
implements IFileEODQuoteImport


Constructor Summary
MetastockBinaryEODImport(Report report, EODQuoteFilter filter)
           
 
Method Summary
 void close()
          Close the file being imported.
static java.lang.String floatToBritishDate(float f)
           
 java.util.List importNext()
          Import the next bundle quotes from the file.
 boolean isNext()
          Return whether there are any more quotes in the file.
static float mbfByteToIeeeFloat(byte[] bytes)
           
 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

MetastockBinaryEODImport

public MetastockBinaryEODImport(Report report,
                                EODQuoteFilter filter)
Method Detail

open

public boolean open(java.io.File file)
Description copied from interface: IFileEODQuoteImport
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()
Description copied from interface: IFileEODQuoteImport
Import the next bundle quotes from the file.

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

isNext

public boolean isNext()
Description copied from interface: IFileEODQuoteImport
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()
Description copied from interface: IFileEODQuoteImport
Close the file being imported.

Specified by:
close in interface IFileEODQuoteImport

floatToBritishDate

public static java.lang.String floatToBritishDate(float f)

mbfByteToIeeeFloat

public static float mbfByteToIeeeFloat(byte[] bytes)

Venice 0.751beta