public ByteArrayOutputStream (int size)

Creates a new byte array output stream, with a buffer capacity of the specified size, in bytes.

Parameters:
size    the initial size.

Exceptions:
IllegalArgumentException    if size is negative.