public abstract void write (byte[] b, int off, int len) throws IOException

Writes len bytes from array b, in order, to the output stream. If b is null, a NullPointerException is thrown. If off is negative, or len is negative, or off+len is greater than the length of the array b, then an IndexOutOfBoundsException is thrown. If len is zero, then no bytes are written. Otherwise, the byte b[off] is written first, then b[off+1], and so on; the last byte written is b[off+len-1].

Parameters:
b    the data.
off    the start offset in the data.
len    the number of bytes to write.

Exceptions:
IOException    if an I/O error occurs.