[External] : Re: My experience using Java to do CLI Scripting
Stuart Marks
stuart.marks at oracle.com
Tue Apr 15 18:29:11 UTC 2025
On 4/15/25 5:30 AM, Ron Pressler wrote:
> On 15 Apr 2025, at 10:51, forax at univ-mlv.fr wrote:
>> +1 for readAllInputLines() and readInputString() on Process.
> Wouldn’t it make more sense to add these to BufferedReader?
Yes. Process already has four Reader-based overloads:
- inputReader()
- inputReader(Charset)
- errorReader()
- errorReader(Charset)
We don't want to add all-lines and whole-string variations for each of these to
Process, which would require eight new methods. There would need to be only two on
BufferedReader, plus one could use them for reading text from other places (e.g., a
socket).
s'marks
More information about the core-libs-dev
mailing list