RFR (JDK11/NIO) 8201276: (fs) Add methods to Files for reading/writing a string from/to a file

Joe Wang huizhe.wang at oracle.com
Mon Apr 30 16:27:34 UTC 2018


Yes!  Thanks for the good catch! Fixed now.

-Joe

On 4/29/2018 11:20 PM, Jonas Konrad wrote:
> Shouldn't write also default to UTF_8 (not defaultCharset), for 
> consistency with the lines-based write method and for symmetry with read?
>
> - Jonas
>
> On 2018-04-27 06:50, Joe Wang wrote:
>> Hi,
>>
>> We're looking into adding methods to Files to read a file into a 
>> String/write a String to a file. Below is the current proposal. 
>> Please review.
>>
>> JBS: https://bugs.openjdk.java.net/browse/JDK-8201276
>>
>> webrev: http://cr.openjdk.java.net/~joehw/jdk11/8201276/webrev/
>>
>> specdiff: 
>> http://cr.openjdk.java.net/~joehw/jdk11/8201276/specdiff/java/nio/file/Files.html 
>>
>>
>>
>> Thanks,
>> Joe



More information about the nio-dev mailing list