@Override
  public final int readUnsignedShort() throws IOException {
    if (readToBuff(2) < 0) {
      throw new EOFException();
    }
    return (char) (((buff[0] & 0xff) << 8) | (buff[1] & 0xff));
  }
Reads a 16-bit unsigned <code>short</code> value from this stream and
returns it as an int.

@return the next unsigned <code>short</code> value from the source stream.

@throws IOException
          If a problem occurs reading from this DataInputStream.
ql/src/java/org/apache/hadoop/hive/ql/io/NonSyncDataInputBuffer.java