This method of the IntArrayOutputStream Class replaces an element in the output stream at a specified offset.
public synchronized void putElement(int ofs, int value);
ofs | The offset in the output stream of the element to be replaced. |
value | The value for the new element. |
ArrayIndexOutOfBoundsException if the offset exceeds or equals the number of elements currently in the stream.