You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
Some use cases require limiting an
InputStream
to a certain length. We currently don't have any auxiliary API inSource
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 onlyThe text was updated successfully, but these errors were encountered: