org.jfin.date.holiday.financialcalendarimpl
Class InfoFile
- java.lang.Object
-
- org.jfin.date.holiday.financialcalendarimpl.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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddEntry(InfoFileEntry entry)Add an entry to the info file.java.lang.String[]getAvailableCodes()InfoFileEntrygetEntryByCode(java.lang.String code)Retrieves an entry based upon its code.voidload(java.io.File f)
-
-
-
Constructor Detail
-
InfoFile
public InfoFile()
-
InfoFile
public InfoFile(java.io.File f) throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Detail
-
load
public void load(java.io.File f) throws java.io.IOException- Throws:
java.io.IOException
-
addEntry
public void addEntry(InfoFileEntry entry)
Add an entry to the info file. The entry is keyed by its code.- Parameters:
entry-
-
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