Class CSVLogger


  • public class CSVLogger
    extends Object
    This CSVLogger class logs all errors during the import into a specific file.
    • Constructor Detail

      • CSVLogger

        public CSVLogger​(CSVConfig csvConfig,
                         String dir)
        Main constructor
        Parameters:
        csvConfig - the config
        dir - that will contain the files
    • Method Detail

      • getCurrentFile

        public File getCurrentFile()
      • log

        public void log​(String[] values)
        Log the row into a specific file.
        Parameters:
        values - the row values
      • prepareInput

        public void prepareInput​(CSVInput csvInput,
                                 String[] fields)
        Configures the file that will receive the rows in error
        Parameters:
        csvInput - the input
        fields - the header fields