Interface CSVWriter<T>
-
- All Known Implementing Classes:
AdvancedCsvProcessor
,CSVProcessor
,ReflectionCSVProcessor
public interface CSVWriter<T>
Interface for writing elements to a CSV file
- Since:
- 2.0
- Author:
- Christoph Praschl
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
write(File targetFile, List<T> elements)
Method for writing the given elements to a csv file (without the column definition)boolean
write(File targetFile, List<T> elements, boolean writeColumnDefinition)
Method for writing the given elements to a csv file
-
-
-
Method Detail
-
write
default boolean write(File targetFile, List<T> elements)
Method for writing the given elements to a csv file (without the column definition)- Parameters:
targetFile
- target file where to write the elementselements
- to be written- Returns:
- true iff elements are written successfully
-
write
boolean write(File targetFile, List<T> elements, boolean writeColumnDefinition)
Method for writing the given elements to a csv file- Parameters:
targetFile
- target file where to write the elementselements
- to be writtenwriteColumnDefinition
- flag which signals if the column definition should be written in the beginning- Returns:
- true iff elements are written successfully
-
-