Package main.utils.iocontrol
Class CSVReader
java.lang.Object
main.utils.iocontrol.CSVReader
A utility class for reading CSV files and returning their
contents as a list of rows, each represented as a list of
strings.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
CSVReader
public CSVReader()
-
-
Method Details
-
read
Reads a CSV file and returns its contents as a list of rows, each represented as a list of strings.- Parameters:
filePath
- the path of the CSV file to be readhasHeader
- a boolean indicating whether the CSV file has a header row- Returns:
- a list of rows, each represented as a list of strings
-