Module Lunchify
Package jku.se.export

Class CsvExporter

java.lang.Object
jku.se.export.CsvExporter

public class CsvExporter extends Object
Utility class for exporting tabular data to CSV format.
  • Constructor Details

    • CsvExporter

      public CsvExporter()
      Default constructor using semicolon as delimiter (common in AT/DE Excel).
    • CsvExporter

      public CsvExporter(String delimiter)
      Constructor allowing custom delimiter.
      Parameters:
      delimiter - Delimiter character used to separate values.
  • Method Details

    • export

      public void export(List<Map<String,String>> rows, String baseFileName) throws IOException
      Exports the provided data rows to a CSV file.
      Parameters:
      rows - List of rows, where each row is a map of column name to value.
      baseFileName - The base name for the output file (without extension).
      Throws:
      IOException - If an I/O error occurs.