short
value from this stream and returns it as an int.
@return the next unsigned short
value from the sourcestream.
@throws IOException If a problem occurs reading from this stream.
@see DataOutput#writeShort(int)
readUnsignedShort
method of DataInput
. Bytes for this operation are read from the contained input stream. @return the next two bytes of this input stream, interpreted as anunsigned 16-bit integer. @exception EOFException if this input stream reaches the end beforereading two bytes. @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
short
value from this stream and returns it as an int.
@return int the next unsigned short
value from the sourcestream.
@throws IOException If a problem occurs reading from this DataInputStream.
@see DataOutput#writeShort(int)
int
, masks it with 0xffff
in order to strip off any sign-extension buts, and returns the result as an unsigned int
value. The bit offset within the stream is reset to zero before the read occurs. @return an unsigned short value from the stream, as an int. @exception java.io.EOFException if the stream reaches the end beforereading all the bytes. @exception IOException if an I/O error occurs. @see #getByteOrder
This operation causes the stream pointer to advance after the read data.
b1
and b2
, where 0 <= b1, b2 <= 255
, then the result is equal to: (b1 << 8) | b2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|