DataOutput.writeByte

Writes to the output stream the eight low- order bits of the argument <code>v</code>. The 24 high-order bits of <code>v</code> are ignored. (This means that <code>writeByte</code> does exactly the same thing as <code>write</code> for an integer argument.) The byte written by this method may be read by the <code>readByte</code> method of interface <code>DataInput</code>, which will then return a <code>byte</code> equal to <code>(byte)v</code>.

@param v the byte value to be written. @throws IOException if an I/O error occurs.

interface DataOutput
void
writeByte
(
int v
)

Meta