Here you can find the source of toInt(byte[] bytes, int index)
public static int toInt(byte[] bytes, int index)
//package com.java2s; //License from project: Apache License public class Main { public static int toInt(byte[] bytes, int index) { return (0xff & bytes[index]) | (0xff00 & (bytes[index + 1] << 8)) | (0xff0000 & (bytes[index + 2] << 16)) | (0xff000000 & (bytes[index + 3] << 24)); }/*from w w w . j a v a 2 s . co m*/ }