readByte

Reads a single byte from the stream.

Throws a StreamNotOpenException if the stream is not open for reading.

Syntax

public int readByte()

Returns

readByte returns a byte of data read from the stream, or -1 if the end of the stream has been reached.