DataInputStream.readChar
Class Overview | Class Members |
This Package |
All Packages
public final char readChar() throws IOException
Returns
the next two bytes of this input stream as a Unicode
character.
Description
Reads a Unicode character from this data input stream. This
method reads two bytes from the underlying input stream. If the
bytes read, in order, are b1 and b2,
where 0 <= b1,
b1 <= 255, then the result is equal to:
This method blocks until either the two bytes are read, the end of
the stream is detected, or an exception is thrown.
Exceptions
EOFException
if this input stream reaches the end before
reading two bytes.
Exceptions
IOException
if an I/O error occurs.
See Also
in