com.mbc.jfin.holiday.impl.financialcalendar
Class InfoFile
- java.lang.Object
-
- com.mbc.jfin.holiday.impl.financialcalendar.InfoFile
-
public class InfoFile extends java.lang.ObjectRepresents a financialcalendar.com info.csv file. An example info.csv file is included with the db jFin distribution. For information on licensing a full info.csv file, along with holiday calendars, visit http://www.financialcalendar.com/ financialcalendar.com is not associated with jFin
-
-
Constructor Summary
Constructors Constructor and Description InfoFile(java.io.File f)InfoFile(java.io.Reader reader)InfoFile(java.lang.String fileName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.String[]getAvailableCodes()InfoFileEntrygetEntryByCode(java.lang.String code)Retrieves an entry based upon its code.voidload(java.io.Reader rawReader)
-
-
-
Constructor Detail
-
InfoFile
public InfoFile(java.lang.String fileName) throws java.io.IOException- Throws:
java.io.IOException
-
InfoFile
public InfoFile(java.io.File f) throws java.io.IOException- Throws:
java.io.IOException
-
InfoFile
public InfoFile(java.io.Reader reader) throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Detail
-
load
public void load(java.io.Reader rawReader) throws java.io.IOException- Throws:
java.io.IOException
-
getEntryByCode
public InfoFileEntry getEntryByCode(java.lang.String code)
Retrieves an entry based upon its code.- Parameters:
code- The code to search for- Returns:
- The entry for the given code, or null if the code is not found
-
getAvailableCodes
public java.lang.String[] getAvailableCodes()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG