Skip to content

Is it possible to parse big csv file line by line? #504

Description

@alfonz19

Maybe I'm overlooking this option somehow, if so please be so kind and point to related documentation/code.

Scenario: In deserializing to some java dto, csv file with first line being header(potentially invalid not relating to dto), following lines are records, potentially invalid, either for deserialization to dto or bean validation. I'd like to process the whole file and report all lines which contains error.

Currently I'm solving it by reading first line (header) which I store in variable and while reading remaining lines I'm creating 2LOC csv documents, which I parse separately. It's nasty, but I don't see another option. Please advise

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions