Here you can find the source of intFromBytes(byte[] b)
public static int intFromBytes(byte[] b)
//package com.java2s; //License from project: LGPL public class Main { public static int intFromBytes(byte[] b) { return (b[0] << 24) | (b[1] & 0xFF) << 16 | (b[2] & 0xFF) << 8 | (b[3] & 0xFF); }//from ww w .j av a 2 s . co m }