RFR 8139206: Add InputStream readNBytes(int len) (original) (raw)

Brian Burkhalter brian.burkhalter at oracle.com
Tue Jan 16 19:17:31 UTC 2018


https://bugs.openjdk.java.net/browse/JDK-8139206 http://cr.openjdk.java.net/~bpb/8139206/webrev.00/

This change would add a new method “byte[] InputStream.readNBytes(int len)” which would read up to at most ‘len’ bytes from the stream and return them in an internally allocated array.

Thanks,

Brian



More information about the core-libs-dev mailing list