byte
value 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)
readUnsignedByte
method of DataInput
. 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
byte
value 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)
0xff
in order to strip off any sign-extension bits, and returns it as a byte
value. Thus, byte values between 0x00
and 0x7f
are simply returned as integer values between 0
and 127
. Values between 0x80
and 0xff
, which normally represent negative byte
values, will be mapped into positive integers between 128
and 255
.
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.
|
|