Class CsvParser
java.lang.Object
org.drools.decisiontable.parser.csv.CsvParser
- All Implemented Interfaces:
DecisionTableParser
Csv implementation. This implementation removes empty "cells" at the end of
each line. Different CSV tools may or may not put heaps of empty cells in.
Csv format is almost identical to XLS, with the one limitation: Merged cells
are not supported. To allow constraints to span across cells for the one
column, this is achieved by using "..." at the end of a cell value. If a cell
value ends with "..." then it will be taken as spanned from the previous
cell.
-
Constructor Summary
ConstructorsConstructorDescriptionCsvParser(List<DataListener> listeners, CsvLineParser lineParser) CsvParser(DataListener listener, CsvLineParser lineParser) -
Method Summary
Modifier and TypeMethodDescriptionvoidParse a file, store the resulting rulebase.voidparseFile(InputStream inStream) Parse an input stream, store the resulting rulebase.
-
Constructor Details
-
CsvParser
-
CsvParser
-
-
Method Details
-
parseFile
Description copied from interface:DecisionTableParserParse an input stream, store the resulting rulebase.- Specified by:
parseFilein interfaceDecisionTableParser
-
parseFile
Description copied from interface:DecisionTableParserParse a file, store the resulting rulebase.- Specified by:
parseFilein interfaceDecisionTableParser
-