Here you can find the source of bytes2Int(byte[] src, int start)
public static int bytes2Int(byte[] src, int start)
//package com.java2s; //License from project: Open Source License public class Main { public static int bytes2Int(byte[] src, int start) { int a = src[start]; int b = src[start + 1]; int c = src[start + 2]; int d = src[start + 3]; return (d << 24) | (c << 16) | (b << 8) | a; }//from w w w . j a va 2s . co m }