Here you can find the source of getInt(byte[] data, int i, boolean bigEndian)
public static int getInt(byte[] data, int i, boolean bigEndian)
//package com.java2s; public class Main { public static int getInt(byte[] data, int i, boolean bigEndian) { if (bigEndian) return ((data[i] << 24) + ((data[i + 1] & 0xff) << 16) + ((data[i + 2] & 0xff) << 8) + (data[i + 3] & 0xff)); else/*from ww w .jav a 2 s . c o m*/ return ((data[i + 3] << 24) + ((data[i + 2] & 0xff) << 16) + ((data[i + 1] & 0xff) << 8) + (data[i] & 0xff)); } }