Customize CsvReader invalid line processing

Description

  • By default invalid lines abort the stream processing.

  • Added CsvReader.Builder.skipInvalidLines() to indicate invalid lines should be skipped.

  • Added CsvReader.Builder.invalidLineParser to provide a user-defined parser for invalid lines.

Workaround

None

Acceptance Test

com.gigaspaces.utils.CsvReaderTests#testCsvInconsistentValues
com.gigaspaces.utils.CsvReaderTests#testCsvInconsistentValuesSkip
com.gigaspaces.utils.CsvReaderTests#testCsvInconsistentValuesCustom

Status

Assignee

Niv Ingberg

Reporter

Niv Ingberg

Labels

None

Priority

Minor

SalesForce Case ID

None

Fix versions

Commitment Version/s

None

Due date

None

Product

None

Edition

Open Source

Platform

All
Configure