Microsoft SDK for Java

appendTo

The appendTo method of the IntArrayOutputStream Class contains the following signatures:

appendTo(IntArrayOutputStream out)
appendTo(IntArrayOutputStream out, int s, int len)

appendTo(IntArrayOutputStream out)

Appends the contents of the output stream onto another IntArrayOutputStream.

Syntax

public synchronized void appendTo(IntArrayOutputStream out);

Parameters

out The output stream to append the stream to.

appendTo(IntArrayOutputStream out, int s, int len)

Appends integers from this output stream onto another IntArrayOutputStream, beginning at a specified offset in this output stream.

Syntax

public synchronized void appendTo(IntArrayOutputStream out, int s, int len);

Parameters

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.

Exceptions

ArrayIndexOutOfBoundsException if the offset is negative, 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.