public BufferedInputStream (InputStream in, int size)

Creates a BufferedInputStream with the specified buffer size, and saves its argument, the input stream in, for later use. An internal buffer array of length size is created and stored in buf.

Parameters:
in    the underlying input stream.
size    the buffer size.

Exceptions:
IllegalArgumentException    if size <= 0.