@Override
  public final int readInt() throws IOException {
    if (readToBuff(4) < 0) {
      throw new EOFException();
    }
    return ((buff[0] & 0xff) << 24) | ((buff[1] & 0xff) << 16)
        | ((buff[2] & 0xff) << 8) | (buff[3] & 0xff);
  }
Reads a 32-bit integer value from this stream.

@return the next <code>int</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