kotlin-csv
kotlin-csv copied to clipboard
Keep input stream open
I realize that generally it doesn't make sense to keep an input stream open when the end of the stream has been reached, but I'd like to read multiple CSV files that are inside a zip file (without extracting them first). However, that's currently not possible since the input stream gets closed when the end of the current zip entry is reached.
@oliverClimbs
Hi, thanks for your useful feedback!
I think it's would be good to introduce the withoutClosingInputStream: Boolean option on the CSV reader.
https://github.com/doyaaaaaken/kotlin-csv#customize
This option's default value is false, and if true is set the input stream keep open (and you need to close it manually).
Does this idea solve your problem?
Yes, that would be a good solution.