Class CsvRecordHandler

    • Constructor Detail

      • CsvRecordHandler

        public CsvRecordHandler()
        Constructs a new CsvRecordHandler.
      • CsvRecordHandler

        public CsvRecordHandler​(FieldModifier fieldModifier)
        Constructs a new CsvRecordHandler with the given field modifier.
        Parameters:
        fieldModifier - the field modifier, must not be null
        Throws:
        java.lang.NullPointerException - if null is passed
    • Method Detail

      • buildRecord

        protected RecordWrapper<CsvRecord> buildRecord()
        Description copied from class: CsvCallbackHandler
        Called at the end of each CSV record to build an object representation of the record.

        The returned wrapper is used by the CsvReader in order to determine how to process the record.

        Specified by:
        buildRecord in class CsvCallbackHandler<CsvRecord>
        Returns:
        the record wrapper or null if the record should be ignored/skipped