Microsoft SDK for Java

getInts

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.

Syntax

public synchronized void getInts(int[] dest, int s, int len);

Parameters

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.

Exceptions

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.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.