Here you can find the source of readUnsignedInt(ByteBuffer byteBuf)
static long readUnsignedInt(ByteBuffer byteBuf) throws Exception
//package com.java2s; //License from project: Apache License import java.nio.ByteBuffer; public class Main { static long readUnsignedInt(ByteBuffer byteBuf) throws Exception { long val = byteBuf.getInt(); if (val < 0) val &= 0xFFFFFFFFL; return val; }/*from ww w. j a v a 2s . c o m*/ }