RFR 8139206: Add InputStream readNBytes(int len)

Brian Burkhalter brian.burkhalter at oracle.com
Wed Jan 24 00:50:31 UTC 2018

On Jan 23, 2018, at 1:19 AM, Weijun Wang <weijun.wang at oracle.com> wrote:

> +     * Therefore, the method may be safely called with very large values of
> +     * {@code len} provided sufficient memory is available.
> What does "sufficient memory" mean? For len, or the number of available bytes?

It means enough bytes for the collectivity of the intermediate and returned buffers. This is already stated to be proportional to ‘len’.


More information about the core-libs-dev mailing list