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

Roger Riggs rriggs at openjdk.org
Thu Apr 17 20:06:46 UTC 2025


On Thu, 17 Apr 2025 19:34:13 GMT, Chen Liang <liach at openjdk.org> wrote:

> I don't see how `readString` is particularly line oriented; making `readAllLines` specific to `BufferedReader` makes sense.

Put another way, I don't think it makes sense to break up the higher level APIs across classes.
The buffering provided combined with the line oriented functions provides a good common place to make the methods discoverable and easy to use. YMMV

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

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


More information about the core-libs-dev mailing list