Class CsvParser
- java.lang.Object
-
- de.westemeyer.plugins.multiselect.parser.CsvParser
-
- All Implemented Interfaces:
ConfigParser
public class CsvParser extends Object implements ConfigParser
Parser implementation to use for CSV configuration type.
-
-
Constructor Summary
Constructors Constructor Description CsvParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiselectDecisionTree
analyzeConfiguration(InputStream config)
Analyze configuration string and transform it into a tree representation of values.protected com.opencsv.CSVReader
createCsvReader(InputStreamReader reader)
String
getValidationResult()
Get validation result, problems, etc.
-
-
-
Method Detail
-
analyzeConfiguration
public MultiselectDecisionTree analyzeConfiguration(InputStream config)
Analyze configuration string and transform it into a tree representation of values.- Specified by:
analyzeConfiguration
in interfaceConfigParser
- Parameters:
config
- configuration input stream- Returns:
- tree of variable values
-
createCsvReader
protected com.opencsv.CSVReader createCsvReader(InputStreamReader reader)
-
getValidationResult
public String getValidationResult()
Description copied from interface:ConfigParser
Get validation result, problems, etc.- Specified by:
getValidationResult
in interfaceConfigParser
- Returns:
- validation result
-
-