Here you can find the source of getInt(ByteBuffer byteBuffer)
public static long getInt(ByteBuffer byteBuffer)
//package com.java2s; //License from project: Apache License import java.nio.ByteBuffer; public class Main { private static final int INT_PADDING = 0xFFFFFFFF; public static long getInt(ByteBuffer byteBuffer) { return ((long) byteBuffer.getInt() & INT_PADDING); }/*from ww w . ja v a 2 s .c om*/ public static long getInt(ByteBuffer byteBuffer, int position) { return ((long) byteBuffer.getInt(position) & INT_PADDING); } }