Writes to the output stream all the bytes in array b.
If b is null,
a NullPointerException is thrown.
If b.length is zero, then
no bytes are written. Otherwise, the byte
b[0] is written first, then
b[1], and so on; the last byte
written is b[b.length-1].
b | the data. |
IOException | if an I/O error occurs. |
Diagram: ObjectOutputStream