Class FinanceDataReader<DP extends DatePrice>
java.lang.Object
org.ojalgo.data.domain.finance.series.FinanceDataReader<DP>
- All Implemented Interfaces:
DataFetcher
,FinanceData<DP>
public final class FinanceDataReader<DP extends DatePrice>
extends Object
implements FinanceData<DP>, DataFetcher
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final File
private final InMemoryFile
private final TextLineReader.Parser
<DP> private final CalendarDateUnit
-
Constructor Summary
ConstructorsConstructorDescriptionFinanceDataReader
(File file, TextLineReader.Parser<DP> parser, CalendarDateUnit resolution) FinanceDataReader
(InMemoryFile file, TextLineReader.Parser<DP> parser, CalendarDateUnit resolution) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends DatePrice>
FinanceDataReader<T> of
(File file, TextLineReader.Parser<T> parser) static <T extends DatePrice>
FinanceDataReader<T> of
(File file, TextLineReader.Parser<T> parser, CalendarDateUnit resolution) static <T extends DatePrice>
FinanceDataReader<T> of
(InMemoryFile file, TextLineReader.Parser<T> parser) static <T extends DatePrice>
FinanceDataReader<T> of
(InMemoryFile file, TextLineReader.Parser<T> parser, CalendarDateUnit resolution) static String
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ojalgo.data.domain.finance.series.DataFetcher
getReader
-
Field Details
-
myFile
-
myInMemoryFile
-
myParser
-
myResolution
-
-
Constructor Details
-
FinanceDataReader
FinanceDataReader(File file, TextLineReader.Parser<DP> parser, CalendarDateUnit resolution) -
FinanceDataReader
FinanceDataReader(InMemoryFile file, TextLineReader.Parser<DP> parser, CalendarDateUnit resolution)
-
-
Method Details
-
of
public static <T extends DatePrice> FinanceDataReader<T> of(File file, TextLineReader.Parser<T> parser) -
of
public static <T extends DatePrice> FinanceDataReader<T> of(File file, TextLineReader.Parser<T> parser, CalendarDateUnit resolution) -
of
public static <T extends DatePrice> FinanceDataReader<T> of(InMemoryFile file, TextLineReader.Parser<T> parser) -
of
public static <T extends DatePrice> FinanceDataReader<T> of(InMemoryFile file, TextLineReader.Parser<T> parser, CalendarDateUnit resolution) -
toSymbol
-
getHistoricalData
- Specified by:
getHistoricalData
in interfaceFinanceData<DP extends DatePrice>
-
getHistoricalPrices
- Specified by:
getHistoricalPrices
in interfaceFinanceData<DP extends DatePrice>
-
getInputStream
- Specified by:
getInputStream
in interfaceDataFetcher
-
getPriceSeries
- Specified by:
getPriceSeries
in interfaceFinanceData<DP extends DatePrice>
-
getResolution
- Specified by:
getResolution
in interfaceDataFetcher
- Returns:
- Typically DAY(ly), WEEK(ly) or MONTH(ly)
-
getSymbol
- Specified by:
getSymbol
in interfaceDataFetcher
- Specified by:
getSymbol
in interfaceFinanceData<DP extends DatePrice>
- Returns:
- Data identifier
-