RFR: 8354724: BufferedReader readAllLines and readString methods [v5]

Alan Bateman alanb at openjdk.org
Fri Apr 18 16:01:41 UTC 2025


On Fri, 18 Apr 2025 15:47:07 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> So you are suggesting moving `readAllLines` up from `BufferedReader` to `Reader`?

I think add it to the list to explore as a non-buffered Reader could support it, esp. when it doesn't support a mark. There are advantages and disadvantages of course and I think you'll need to write these down to help decide what APIs might make sense to expose, and where.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/24728#issuecomment-2815696416


More information about the core-libs-dev mailing list