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

Add Source.of(InputStream, int) and Source.of(Reader, int) to create length limited sources #12667

Closed
lukaseder opened this issue Nov 26, 2021 · 1 comment

Comments

@lukaseder
Copy link
Member

Some use cases require limiting an InputStream to a certain length. We currently don't have any auxiliary API in Source for that. Would be useful as an overload.

This can be used to implement #12666, because we cannot use InputStream.readNBytes() yet, which was added in Java 11 only

@lukaseder
Copy link
Member Author

Fixed in jOOQ 3.16.0 and 3.15.5 (#12668) (Backport because it helps implement a bug fix #12666)

3.16 Other improvements automation moved this from To do to Done Nov 26, 2021
@lukaseder lukaseder changed the title Add Source.of(InputStream, int) to create length limited input stream sources Add Source.of(InputStream, int) and Source.of(Reader, int) to create length limited sources Nov 26, 2021
lukaseder added a commit that referenced this issue Nov 26, 2021
lukaseder added a commit that referenced this issue Nov 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

1 participant