Interface CSVReader<T>
-
- All Known Implementing Classes:
AdvancedCsvProcessor
,CSVProcessor
,ReflectionCSVProcessor
public interface CSVReader<T>
Interface for a CSV file reader
- Since:
- 2.0
- Author:
- Christoph Praschl
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default List<T>
read(File csvFile)
Method for reading the given csv file (without a column definition) and converting the lines to the specific element typedefault List<T>
read(File csvFile, boolean containsColumndefinition)
Method for reading the given csv file (without a column definition) and converting the lines to the specific element typeList<T>
read(File csvFile, boolean containsColumndefinition, boolean useFileColumnDefinition)
Method for reading the given csv file and converting the lines to the specific element type
-
-
-
Method Detail
-
read
default List<T> read(File csvFile)
Method for reading the given csv file (without a column definition) and converting the lines to the specific element type- Parameters:
csvFile
- source file to read- Returns:
- the read elements
-
read
default List<T> read(File csvFile, boolean containsColumndefinition)
Method for reading the given csv file (without a column definition) and converting the lines to the specific element type- Parameters:
csvFile
- source file to readcontainsColumndefinition
- flag which signals if the file contains a column definition which will be ignored- Returns:
- the read elements
-
read
List<T> read(File csvFile, boolean containsColumndefinition, boolean useFileColumnDefinition)
Method for reading the given csv file and converting the lines to the specific element type- Parameters:
csvFile
- source file to readcontainsColumndefinition
- flag which signals if the file contains a column definitionuseFileColumnDefinition
- flag if the column definition in the csv file should be used instead of a given one (only used if containsColumndefinition == true)- Returns:
- the read elements
-
-