This method of the IntArrayOutputStream Class retrieves the array of integers represented by the IntArrayOutputStream object.
public int[] getIntArray();
Returns the array of integers represented by the output stream.