code: public static int readIntegerBigEndian(byte[] buffer, int offset) {
  		int value;
  		value = (buffer[offset] & 0xFF) << 24;
  		value |= (buffer[offset + 1] & 0xFF) << 16;
  		value |= (buffer[offset + 2] & 0xFF) << 8;
  		value |= (buffer[offset + 3] & 0xFF);
  		return value;
  	}
docs: big-endian or motorola format.