The write method of the IntArrayOutputStream Class contains the following signatures:
write(int[] src)
write(int b)
write(int[] src, int s, int len)
Appends an array of integers to the output stream.
public void write(int[] src);
src | The array of integers to append to the output stream. |
Appends a byte to the output stream. This method blocks until the byte is actually written.
public void write(int b) throws IOException;
b | The byte to append. |
IOException if the byte cannot be appended to the output stream.
Appends a number of integers from the specified array to the output stream, starting with the integer at offset s in the array.
public synchronized void write(int[] src, int s, int len);
src | The array of integers to append to the output stream. |
s | The offset in the array, where the first integer to append is located. |
len | The number of integers to append. |