Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep input stream open #102

Open
oliverClimbs opened this issue Jul 9, 2022 · 2 comments
Open

Keep input stream open #102

oliverClimbs opened this issue Jul 9, 2022 · 2 comments
Labels
feature request New feature request good first issue Good for newcomers

Comments

@oliverClimbs
Copy link

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.

@doyaaaaaken doyaaaaaken added good first issue Good for newcomers feature request New feature request labels Jul 11, 2022
@doyaaaaaken
Copy link
Collaborator

@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?

@oliverClimbs
Copy link
Author

oliverClimbs commented Jul 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants