code: public static int parseBE4BytesAsInt(byte[] data, int offset)
      {
          int value = ((data[offset + 0] & 0xFF) << 24)
                    | ((data[offset + 1] & 0xFF) << 16)
                    | ((data[offset + 2] & 0xFF) <<  8)
                    | ((data[offset + 3] & 0xFF));
  
          return value;
      }
docs: Parse 4 bytes in big endian byte order as an {@code int}.