The appendTo method of the IntArrayOutputStream Class contains the following signatures:
appendTo(IntArrayOutputStream out)
appendTo(IntArrayOutputStream out, int s, int len)
Appends the contents of the output stream onto another IntArrayOutputStream.
public synchronized void appendTo(IntArrayOutputStream out);
out | The output stream to append the stream to. |
Appends integers from this output stream onto another IntArrayOutputStream, beginning at a specified offset in this output stream.
public synchronized void appendTo(IntArrayOutputStream out, int s, int len);
out | The output stream to append the integers to. |
s | The offset in this output stream where the first integer to append is located. |
len | The number of integers in this output stream to append. |
ArrayIndexOutOfBoundsException if the offset is negative, or if the specified number of integers to append exceeds the amount available from the specified offset.