Package ru.ewc.decita.input
Class PlainTextContentReader
java.lang.Object
ru.ewc.decita.input.PlainTextContentReader
- All Implemented Interfaces:
ContentReader
I am the specific
ContentReader that knows how to read CSV-files. My main responsibility
is to perform file-system read operation and transform the file lines into a format suitable for
constructing DecisionTables.- Since:
- 0.2
-
Constructor Summary
ConstructorsConstructorDescriptionPlainTextContentReader(URI dir, String extension, String delimiter) Ctor with specified delimiter. -
Method Summary
Modifier and TypeMethodDescriptionReads all the source data and returns theLocators collection, that can be used to initialize theComputationContext.
-
Constructor Details
-
PlainTextContentReader
Ctor with specified delimiter.- Parameters:
dir- The folder of source data files.extension- The extension of source data files.delimiter- The symbol that separates CSV-record fields.
-
-
Method Details
-
allTables
Description copied from interface:ContentReaderReads all the source data and returns theLocators collection, that can be used to initialize theComputationContext.- Specified by:
allTablesin interfaceContentReader- Returns:
- A collection of
Locators , representing the contents ofDecisionTables data sources.
-