Here you can find the source of Bytes2Int32(byte[] sour, int offset)
public static int Bytes2Int32(byte[] sour, int offset)
//package com.java2s; public class Main { public static int Bytes2Int32(byte[] sour, int offset) { return (((sour[offset] << 24) & 0xFF000000) | ((sour[offset + 1] << 16) & 0x00FF0000) | ((sour[offset + 2] << 8) & 0x0000FF00) | (sour[offset + 3] & 0x000000FF)); }// w w w. j a v a 2 s . c o m }