RFR: 8354724: BufferedReader readAllLines and readString methods [v5]
Brian Burkhalter
bpb at openjdk.org
Mon Apr 21 20:22:45 UTC 2025
On Fri, 18 Apr 2025 15:10:02 GMT, Chen Liang <liach at openjdk.org> wrote:
>> Maybe it can be implemented by referring to `InputStream::readNBytes(int)` (The default implementation of `InputStream::readAllBytes()` is based on it):
>>
>> https://github.com/openjdk/jdk/blob/22e8a97a1ce4e1c781fbc6f1e271c477fe95f069/src/java.base/share/classes/java/io/InputStream.java#L396-L458
>
> If accumulation of array is necessary, I think the "variable sized array" in #24232 may help/
https://github.com/openjdk/jdk/pull/24728#issuecomment-2815687444
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24728#discussion_r2052949330
More information about the core-libs-dev
mailing list