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 DecisionTable
s.- Since:
- 0.2
-
Constructor Summary
ConstructorDescriptionPlainTextContentReader
(URI dir, String extension, String delimiter) Ctor with specified delimiter. -
Method Summary
Modifier and TypeMethodDescriptionReads all the source data and returns theLocator
s 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:ContentReader
Reads all the source data and returns theLocator
s collection, that can be used to initialize theComputationContext
.- Specified by:
allTables
in interfaceContentReader
- Returns:
- A collection of
Locator
s , representing the contents ofDecisionTable
s data sources.
-