Class HeadedCsvParser
java.lang.Object
com.xceptance.xlt.api.report.external.AbstractLineParser
com.xceptance.xlt.api.report.external.SimpleCsvParser
com.xceptance.xlt.api.report.external.HeadedCsvParser
Parses lines of a CSV file. Addresses columns by their column headline. It is assumed that the first line in file is
the head-line. For any values to be parsed the
AbstractLineParser.setValueNames(java.util.Set) has to be called with the names
of the columns which should be parsed (the time is stored in an extra field, so you do not have to give it as value
name. The time column has to be the first one in the csv file).-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.xceptance.xlt.api.report.external.SimpleCsvParser
getFieldSeparatorMethods inherited from class com.xceptance.xlt.api.report.external.AbstractLineParser
getDateFormat, getProperties, getValueNames, parseTime, setProperties, setValueNames
-
Constructor Details
-
HeadedCsvParser
public HeadedCsvParser()
-
-
Method Details
-
parse
Parse the resource line.- Overrides:
parsein classSimpleCsvParser- 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
Returns the name of the i-th column.- Overrides:
getNamein classSimpleCsvParser- Parameters:
i- the column index- Returns:
- the column's name
-