public class CsvSampleReader
extends java.lang.Object
implements java.io.Closeable
Handles SampleMetadata
reading and sample extraction.
Constructor and Description |
---|
CsvSampleReader(java.io.File inputFile,
char separator,
boolean useSaveSampleCfg)
Instantiates a new csv sample reader.
|
CsvSampleReader(java.io.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(java.io.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(java.io.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 java.io.Closeable
close
in interface java.lang.AutoCloseable
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.