readChar

Reads a single character from the stream.

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

Syntax

public int readChar()

Returns

readChar returns a single character read from the stream, or -1 if the end of the stream has been reached.