Here you can find the source of byteArrayToInt(byte[] b)
public static int byteArrayToInt(byte[] b)
//package com.java2s; //License from project: Open Source License public class Main { public static int byteArrayToInt(byte[] b) { return b[3] & 0xFF | (b[2] & 0xFF) << 8 | (b[1] & 0xFF) << 16 | (b[0] & 0xFF) << 24; }/*from w w w. java 2 s.com*/ }