public class CsvSampleReader extends Object implements Closeable
Handles SampleMetadata reading and sample extraction.
| Constructor and Description |
|---|
CsvSampleReader(File inputFile,
char separator,
boolean useSaveSampleCfg)
Instantiates a new csv sample reader.
|
CsvSampleReader(File inputFile,
SampleMetadata metadata)
Instantiates a new csv sample reader.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
SampleMetadata |
getMetadata() |
boolean |
hasNext() |
Sample |
peek() |
Sample |
readSample() |
public CsvSampleReader(File inputFile, char separator, boolean useSaveSampleCfg)
inputFile - the input file (must not be null)separator - the separatoruseSaveSampleCfg - indicates whether the reader uses jmeter
SampleSaveConfiguration to define metadatapublic CsvSampleReader(File inputFile, SampleMetadata metadata)
inputFile - the input file (must not be null)metadata - the metadatapublic SampleMetadata getMetadata()
public Sample readSample()
public Sample peek()
public boolean hasNext()
public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 1998-2023 Apache Software Foundation. All Rights Reserved.