DataInputStream.readFloat

DataInputStream.readFloat

Class Overview | Class Members | This Package | All Packages

Syntax
public final float readFloat() throws IOException
Returns
the next four bytes of this input stream, interpreted as a float.
Description
Reads a float from this data input stream. 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.

Exceptions
EOFException if this input stream reaches the end before reading four bytes.
Exceptions
IOException if an I/O error occurs.
See Also
readInt, intBitsToFloat