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