bytevalue from this stream and returns it as an int. @return the next unsigned byte value from the source stream. @throws IOException If a problem occurs reading from this stream. @see DataOutput#writeByte(int)
Bytes for this operation are read from the contained input stream. @return the next byte of this input stream, interpreted as anunsigned 8-bit number. @exception EOFException if this input stream has reached the end. @exception IOException the stream has been closed and the containedinput stream does not support reading after close, or another I/O error occurs. @see java.io.FilterInputStream#in
bytevalue from this stream and returns it as an int. @return int the next unsigned byte value from the source stream. @throws IOException If a problem occurs reading from this DataInputStream. @see DataOutput#writeByte(int)
0xffin order to strip off any sign-extension bits, and returns it as a
Thus, byte values between
0x7f are simply returned as integer values between
127. Values between
0xff, which normally represent negative
bytevalues, will be mapped into positive integers between
The bit offset within the stream is reset to zero before the read occurs. @return an unsigned byte value from the stream. @exception java.io.EOFException if the end of the stream is reached. @exception IOException if an I/O error occurs.
This operation causes the stream pointer to advance after the read data.