RandomAccessFile.readByte

RandomAccessFile.readByte

Class Overview | Class Members | This Package | All Packages

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

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

Exceptions
EOFException if this file has reached the end.
Exceptions
IOException if an I/O error occurs.