Microsoft SDK for Java

putElement

This method of the IntArrayOutputStream Class replaces an element in the output stream at a specified offset.

Syntax

public synchronized void putElement(int ofs, int value);

Parameters

ofs The offset in the output stream of the element to be replaced.
value The value for the new element.

Exceptions

ArrayIndexOutOfBoundsException if the offset exceeds or equals the number of elements currently in the stream.

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