Reads two input bytes and returns a {@code char} value.
Let {@code a}
be the first byte read and {@code b}
be the second byte. The value
returned is:
<pre>{@code (char)((a << 8) | (b & 0xff))
}</pre>
This method
is suitable for reading bytes written by
the {@code writeChar} method of interface
{@code DataOutput}.
@return the {@code char} value read.
@exception EOFException if this stream reaches the end before reading
all the bytes.
@exception IOException if an I/O error occurs.
Reads two input bytes and returns a {@code char} value. Let {@code a} be the first byte read and {@code b} be the second byte. The value returned is: <pre>{@code (char)((a << 8) | (b & 0xff)) }</pre> This method is suitable for reading bytes written by the {@code writeChar} method of interface {@code DataOutput}.
@return the {@code char} value read. @exception EOFException if this stream reaches the end before reading all the bytes. @exception IOException if an I/O error occurs.