Is it possible to throw exception when the expected header fields are not present in csv file, while parsing it via univocity parser
Asked
Active
Viewed 327 times
1 Answers
2
Are you processing the file into java beans? If that is the case, on your BeanProcessor
instance, call setStrictHeaderValidationEnabled(true)
and it will validate the input headers against the fields annotated with the @Parsed
annotation.

Jeronimo Backes
- 6,141
- 2
- 25
- 29