|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkg.apc.jmeter.config.VariableFromCsvFileReader
public class VariableFromCsvFileReader
| Constructor Summary | |
|---|---|
VariableFromCsvFileReader(BufferedReader input)
Initialize a new CSV reader with a BufferedReader as input. |
|
VariableFromCsvFileReader(String csvFileName)
Initialize a new CSV reader for the named file. |
|
| Method Summary | |
|---|---|
Map<String,String> |
getDataAsMap(String prefix,
String separator)
Parses (name, value) pairs from the input and returns the result as a Map. |
Map<String,String> |
getDataAsMap(String prefix,
String separator,
int skipLines)
Parses (name, value) pairs from the input and returns the result as a Map, with the option to skip the first line. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VariableFromCsvFileReader(String csvFileName)
csvFileName - name of the CSV input filepublic VariableFromCsvFileReader(BufferedReader input)
input - the CSV input| Method Detail |
|---|
public Map<String,String> getDataAsMap(String prefix,
String separator)
prefix - a prefix to apply to the mapped variable namesseparator - the field delimiter
public Map<String,String> getDataAsMap(String prefix,
String separator,
int skipLines)
prefix - a prefix to apply to the mapped variable namesseparator - the field delimiterskipLines - the number of lines at the beginning of the input to skip
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||