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 -
Method Summary
Modifier and TypeMethodDescriptiondefault voidInterface for exporting CSV.voidInterface for exporting CSV.default voidInterface for exporting CSV.getURI()Simple getter for the import and export URI.Interface for importing a CSV.Interface for importing a CSV.Returns a (new) CsvXPorter with new URI.
-
Field Details
-
log
-
-
Method Details
-
getURI
-
withURI
Returns a (new) CsvXPorter with new URI.- Parameters:
csvURI- URI of the returned CsvXPorter- Returns:
- usually a new CsvXPorter
-
exportCSV
Interface for exporting CSV.- Parameters:
uri- URI wher the CSV should be exported tocsvHeadLine- CSV headercsvLines- CSV lines- Throws:
IOException- in case of I/O problems
-
exportCSV
Interface for exporting CSV.- Parameters:
csvHeadLine- CSV headercsvLines- CSV lines- Throws:
IOException- in case of I/O problems- Since:
- 3.0
-
exportCSV
Interface for exporting CSV.- Parameters:
csvLines- CSV lines including head line- Throws:
IOException- in case of I/O problems- Since:
- 3.0
-
importCSV
Interface for importing a CSV. This method should be called inexportCSV(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
-
importCSV
Interface for importing a CSV. This method should be called inexportCSV(URI, String, List)to aggregate the count of the actual export with former exports.- Returns:
- list of CSV lines (including head line)
- Throws:
IOException- in case of I/O problems- Since:
- 3.0
-