DataOutput.writeFloat

Writes a <code>float</code> value, which is comprised of four bytes, to the output stream. It does this as if it first converts this <code>float</code> value to an <code>int</code> in exactly the manner of the <code>Float.floatToIntBits</code> method and then writes the <code>int</code> value in exactly the manner of the <code>writeInt</code> method. The bytes written by this method may be read by the <code>readFloat</code> method of interface <code>DataInput</code>, which will then return a <code>float</code> equal to <code>v</code>.

@param v the <code>float</code> value to be written. @throws IOException if an I/O error occurs.

interface DataOutput
void
writeFloat
(
float v
)

Meta