public abstract int readUnsignedShort () throws IOException

Reads two input bytes and returns an int value in the range 0 through 65535. Let a be the first byte read and b be the second byte. The value returned is:

 (((a & 0xff) << 8) | (b & 0xff))
 
This method is suitable for reading the bytes written by the writeShort method of interface DataOutput if the argument to writeShort was intended to be a value in the range 0 through 65535.

Returns:  the unsigned 16-bit value read.

Exceptions:
EOFException    if this stream reaches the end before reading all the bytes.
IOException    if an I/O error occurs.