Class PlainDataTableCsvParser
- java.lang.Object
-
- com.xceptance.xlt.api.report.external.AbstractLineParser
-
- com.xceptance.xlt.api.report.external.PlainDataTableCsvParser
-
public class PlainDataTableCsvParser extends AbstractLineParser
Parses a line of a CSV file, extracts the values of interest, and returns them as aValueSet. The value set will not carry a timestamp. Use this parser if you simply want to present the contents of a CSV file as a data table in the load test report.This parser can be configured in file
externaldataconfig.xmlusing the following properties:- "parser.csv.separator" - the field separator to use (',' by default)
- See Also:
SimpleCsvParser,HeadedCsvParser
-
-
Constructor Summary
Constructors Constructor Description PlainDataTableCsvParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected chargetFieldSeparator()Returns the configured CSV field separator character.protected java.lang.StringgetName(int i)Returns the name of the i-th column.ValueSetparse(java.lang.String line)Parse the resource line.-
Methods inherited from class com.xceptance.xlt.api.report.external.AbstractLineParser
getDateFormat, getProperties, getValueNames, parseTime, setProperties, setValueNames
-
-
-
-
Method Detail
-
parse
public ValueSet parse(java.lang.String line)
Parse the resource line.- Specified by:
parsein classAbstractLineParser- Parameters:
line- line to parse- Returns:
- parsed
ValueSetornullif there is currently nothing to return. This might be in case the line has no value of interest.
-
getName
protected java.lang.String getName(int i)
Returns the name of the i-th column.- Parameters:
i- the column index- Returns:
- the column's name
-
getFieldSeparator
protected char getFieldSeparator()
Returns the configured CSV field separator character. By default it is a comma.- Returns:
- field separator
-
-