DataInputStream.readDouble

DataInputStream.readDouble

Class Overview | Class Members | This Package | All Packages

Syntax
public final double readDouble() throws IOException
Returns
the next eight bytes of this input stream, interpreted as a double.
Description
Reads a double from this data input stream. This method reads a long value as if by the readLong method and then converts that long to a double using the longBitsToDouble method in class Double.

This method blocks until the eight bytes are read, the end of the stream is detected, or an exception is thrown.

Exceptions
EOFException if this input stream reaches the end before reading eight bytes.
Exceptions
IOException if an I/O error occurs.
See Also
readLong, longBitsToDouble