RandomAccessFile.readDouble

RandomAccessFile.readDouble

Class Overview | Class Members | This Package | All Packages

Syntax
public final double readDouble() throws IOException
Returns
the next eight bytes of this file, interpreted as a double.
Description
Reads a double from this file. 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 file reaches the end before reading eight bytes.
Exceptions
IOException if an I/O error occurs.
See Also
readLong, longBitsToDouble