DataInput.readDouble

Reads eight input bytes and returns a {@code double} value. It does this by first constructing a {@code long} value in exactly the manner of the {@code readLong} method, then converting this {@code long} value to a {@code double} in exactly the manner of the method {@code Double.longBitsToDouble}. This method is suitable for reading bytes written by the {@code writeDouble} method of interface {@code DataOutput}.

@return the {@code double} value read. @exception EOFException if this stream reaches the end before reading all the bytes. @exception IOException if an I/O error occurs.

interface DataInput
double
readDouble
()

Meta