Class FileXPorter
java.lang.Object
clazzfish.core.spi.FileXPorter
- All Implemented Interfaces:
CsvXPorter
The class FileXPorter accepts a file URI to import and export CSV data.
- Since:
- 2.5 (18.02.25)
- Author:
- oboehm
-
Constructor Details
-
FileXPorter
-
FileXPorter
-
-
Method Details
-
getURI
Description copied from interface:CsvXPorterSimple getter for the import and export URI.- Specified by:
getURIin interfaceCsvXPorter- Returns:
- URI
-
withURI
Description copied from interface:CsvXPorterReturns a (new) CsvXPorter with new URI.- Specified by:
withURIin interfaceCsvXPorter- Parameters:
csvURI- URI of the returned CsvXPorter- Returns:
- usually a new CsvXPorter
-
exportCSV
Description copied from interface:CsvXPorterInterface for exporting CSV.- Specified by:
exportCSVin interfaceCsvXPorter- Parameters:
uri- URI wher the CSV should be exported tocsvHeadLine- CSV headercsvLines- CSV lines- Throws:
IOException- in case of I/O problems
-
importCSV
Description copied from interface:CsvXPorterInterface for importing a CSV. This method should be called inCsvXPorter.exportCSV(URI, String, List)to aggregate the count of the actual export with former exports.- Specified by:
importCSVin interfaceCsvXPorter- 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
-
equals
-
hashCode
-
toString
-