Interface CsvXPorter

All Known Implementing Classes:
CsvPrinter, FileXPorter, GitCsvXPorter

public interface CsvXPorter
The interface CsvXPorter contains the needed methods to import and export a CSV file for different locations.
Since:
2.5 (18.02.25)
Author:
oboehm
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.slf4j.Logger
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    exportCSV(URI uri, String csvHeadLine, List<String> csvLines)
    Interface for exporting CSV.
    default List<String>
    Interface for importing a CSV.
  • Field Details

    • log

      static final org.slf4j.Logger log
  • Method Details

    • exportCSV

      void exportCSV(URI uri, String csvHeadLine, List<String> csvLines) throws IOException
      Interface for exporting CSV.
      Parameters:
      uri - URI wher the CSV should be exported to
      csvHeadLine - CSV header
      csvLines - CSV lines
      Throws:
      IOException - in case of I/O problems
    • importCSV

      default List<String> importCSV(URI uri) throws IOException
      Interface for importing a CSV. This method should be called in exportCSV(URI, String, List) to aggregate the count of the actual export with former exports.
      Parameters:
      uri - URI where the CSV should be imported from
      Returns:
      list of CSV lines (including head line)
      Throws:
      IOException - in case of I/O problems