Here you can find the source of getInt(ByteBuffer bb, int bi)
public static int getInt(ByteBuffer bb, int bi)
//package com.java2s; //License from project: Apache License import java.nio.ByteBuffer; public class Main { public static int getInt(ByteBuffer bb, int bi) { return makeInt(bb.get(bi + 3), bb.get(bi + 2), bb.get(bi + 1), bb.get(bi)); }/*w w w .j ava 2 s.c o m*/ static private int makeInt(byte b3, byte b2, byte b1, byte b0) { return (((b3) << 24) | ((b2 & 0xff) << 16) | ((b1 & 0xff) << 8) | ((b0 & 0xff))); } }