Microsoft SDK for Java

write

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

write(int[] src)
write(int b)
write(int[] src, int s, int len)

write(int[] src)

Appends an array of integers to the output stream.

Syntax

public void write(int[] src);

Parameters

src The array of integers to append to the output stream.

write(int b)

Appends a byte to the output stream. This method blocks until the byte is actually written.

Syntax

public void write(int b) throws IOException;

Parameters

b The byte to append.

Exceptions

IOException if the byte cannot be appended to the output stream.

write(int[] src, int s, int len)

Appends a number of integers from the specified array to the output stream, starting with the integer at offset s in the array.

Syntax

public synchronized void write(int[] src, int s, int len);

Parameters

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.

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