DataOutput.write

Writes to the output stream all the bytes in array <code>b</code>. If <code>b</code> is <code>null</code>, a <code>NullPointerException</code> is thrown. If <code>b.length</code> is zero, then no bytes are written. Otherwise, the byte <code>b[0]</code> is written first, then <code>b[1]</code>, and so on; the last byte written is <code>b[b.length-1]</code>.

@param b the data. @throws IOException if an I/O error occurs.

  1. void write(int b)
  2. void write(byte[] b)
    interface DataOutput
    void
    write
    (
    byte[] b
    )
  3. void write(byte[] b, int off, int len)

Meta