Here you can find the source of byte2int(byte[] b)
public static int byte2int(byte[] b)
//package com.java2s; //License from project: Open Source License public class Main { public static int byte2int(byte[] b) { return (0xFF & b[0]) << 24 | (0xFF & b[1]) << 16 | (0xFF & b[2]) << 8 | (0xFF & b[3]) << 0; }//from www . j a v a 2 s. c o m }