This method of the IntArrayOutputStream Class retrieves the maximum number of integers that the IntArrayOutputStream object can hold.
public synchronized int capacity();
Returns the maximum capacity of the output stream.