This method of the IntArrayOutputStream Class copies integers from the output stream to an array. The first integer copied is located at the beginning of the stream; it is copied to the specified offset in the array.
public synchronized void getInts(int[] dest, int s, int len);
dest | The array that receives the integers. |
s | The offset in the array where the first integer is copied to. |
len | The number of integers in the output stream to copy. |
ArrayIndexoutOfBoundsException if the offset is negative, if copying the integers will exceed the capacity of the array, or if the specified number of integers to append exceeds the amount available from the specified offset.