code: public static int readLittleEndianInt(DataInput in) throws IOException {
  		int bigEndian = 0;
  		for (int shiftBy = 0; shiftBy < 32; shiftBy += 8) {
  			bigEndian |= (in.readUnsignedByte() & 0xff) << shiftBy;
  		}
  		return bigEndian;
  	}
docs: Read a littleEndian integer(32b its) from DataInput
  @param in DataInput to read from
  @return int value of next 32 bits as littleEndian
  @throws IOException if an IO error happens
  @throws EOFException if reached end of file before 4 bytes are readed