Reads one input byte, zero-extends
it to type {@code int}, and returns
the result, which is therefore in the range
{@code 0}
through {@code 255}.
This method is suitable for reading
the byte written by the {@code writeByte}
method of interface {@code DataOutput}
if the argument to {@code writeByte}
was intended to be a value in the range
{@code 0} through {@code 255}.
@return the unsigned 8-bit value read.
@exception EOFException if this stream reaches the end before reading
all the bytes.
@exception IOException if an I/O error occurs.
Reads one input byte, zero-extends it to type {@code int}, and returns the result, which is therefore in the range {@code 0} through {@code 255}. This method is suitable for reading the byte written by the {@code writeByte} method of interface {@code DataOutput} if the argument to {@code writeByte} was intended to be a value in the range {@code 0} through {@code 255}.
@return the unsigned 8-bit value read. @exception EOFException if this stream reaches the end before reading all the bytes. @exception IOException if an I/O error occurs.