DataInputStream.readByte

DataInputStream.readByte

Class Overview | Class Members | This Package | All Packages

Syntax
public final byte readByte() throws IOException
Returns
the next byte of this input stream as a signed 8-bit byte.
Description
Reads a signed 8-bit value from this data input stream. This method reads a byte from the underlying input stream. If the byte read is b, where 0 <= b <= 255, then the result is:

This method blocks until either the byte is read, the end of the stream is detected, or an exception is thrown.

Exceptions
EOFException if this input stream has reached the end.
Exceptions
IOException if an I/O error occurs.
See Also
in