Reads a
float
from this file. This method reads an
int
value as if by the
readInt
method and then converts that
int
to a
float
using the
intBitsToFloat
method in class
Float
.
This method blocks until the four bytes are read, the end of the stream is detected, or an exception is thrown.
@return the next four bytes of this file, interpreted as a
float
.
@throws EOFException if this file reaches the end before readingfour bytes.
@throws IOException if an I/O error occurs.
@see java.io.RandomAccessFile#readInt()
@see java.lang.Float#intBitsToFloat(int)