Here you can find the source of bytesToInt(byte[] b, int i)
private static int bytesToInt(byte[] b, int i)
//package com.java2s; //License from project: Open Source License public class Main { private static int bytesToInt(byte[] b, int i) { return ((((b[i + 3]) & 0xff) << 0) | (((b[i + 2]) & 0xff) << 8) | (((b[i + 1]) & 0xff) << 16) | (((b[i + 0]) & 0xff) << 24)); }// w ww . ja va2 s . c o m }