Here you can find the source of toInt(byte in0, byte in1, byte in2, byte in3)
public static int toInt(byte in0, byte in1, byte in2, byte in3)
//package com.java2s; //License from project: Open Source License public class Main { public static int toInt(byte in0, byte in1, byte in2, byte in3) { return (in0 & 0xFF) | ((in1 & 0xFF) << 8) | ((in2 & 0xFF) << 16) | ((in3 & 0xFF) << 24); }/*from ww w . java 2 s.c o m*/ public static int toInt(byte[] in) { return toInt(in[0], in[1], in[2], in[3]); } public static int toInt(byte[] in, int ofs) { return toInt(in[ofs + 0], in[ofs + 1], in[ofs + 2], in[ofs + 3]); } }