Here you can find the source of byteArray2Int(byte[] b)
public static final int byteArray2Int(byte[] b)
//package com.java2s; public class Main { public static final int byteArray2Int(byte[] b) { return (b[0] << 24) + ((b[1] & 0xFF) << 16) + ((b[2] & 0xFF) << 8) + (b[3] & 0xFF);/* w w w. j a v a2 s . co m*/ } }