charred icon indicating copy to clipboard operation
charred copied to clipboard

re-use this for single row parsing

Open behrica opened this issue 1 year ago • 1 comments

I am working on a csv reader, which does custom "text->numbers" conversion while it reads tehe rows. (it does this row-by-row) (it converts the text on-the-fly into a tid-text-format, one row per token.

So I cannot use the CsvReader but was hoping that I can re-use the logic of parsing a "single row" into the fields.

But I did not see, if this is possible, I don't think so.

behrica avatar Oct 09 '24 17:10 behrica

Why exactly does it seem not possible? Would I just need to make private functions public in the CSVReader class or make it not final - what would you need to reuse this class? The RowReader uses it externally like I think you intend to so in that sense it seems like it is possible to make your own unrelated row-reader-type thing and call the same?

Are you concerned about duplicating the logic here?

Could you provide a different implementation of JSONReader.ArrayReader?

cnuernber avatar Nov 10 '24 15:11 cnuernber