On Fri, 16 Sep 2022 13:59:32 GMT, Roger Riggs <rri...@openjdk.org> wrote:

>> I'm sorry, I can't replace this code with a HexFormat one-line. Do you have 
>> an example code?
>
> Extract to a byte array with the appropriate charset and then HexFormat the 
> bytearray.
> 
> 
>     var SysPropHexVal = 
> HexFormat.of().formatHex(sysPropVal.getBytes(StandardCharsets.UTF_16));

Thanks, Roger. You beat me to it 🙂

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

PR: https://git.openjdk.org/jdk/pull/9389

Reply via email to