On 19/02/2018 20:19, Simone Bordet wrote:
:
Now, ByteBufferInputStream is not present in the JDK, and if you want
to complain you are in good (and conspicuous) company, as the JDK
engineers appear to avoid the issue since years now (e.g. create a
String from a ByteBuffer without copy).

There is an active proposal/discussion on core-libs-dev to add a constructor to String that creates the String by decoding the bytes in a buffer.

-Alan

Reply via email to