Writes a
long value, which is comprised of eight bytes, to the output stream. The byte values to be written, in the order shown, are:
(byte)(0xff & (v >> 56)) (byte)(0xff & (v >> 48)) (byte)(0xff & (v >> 40)) (byte)(0xff & (v >> 32)) (byte)(0xff & (v >> 24)) (byte)(0xff & (v >> 16)) (byte)(0xff & (v >> 8)) (byte)(0xff & v)
The bytes written by this method may be read by the readLong method of interface DataInput , which will then return a long equal to v.
@param v the long value to be written.
@throws IOException if an I/O error occurs.