public abstract char readChar () throws IOException

Reads two input bytes and returns a char value. Let a be the first byte read and b be the second byte. The value returned is:

 (char)((a << 8) | (b & 0xff))
 
This method is suitable for reading bytes written by the writeChar method of interface DataOutput.

Returns:  the char value read.

Exceptions:
EOFException    if this stream reaches the end before reading all the bytes.
IOException    if an I/O error occurs.