Here you can find the source of readLink(ByteBuffer bb)
public static long readLink(ByteBuffer bb) throws IOException
//package com.java2s; //License from project: LGPL import java.io.IOException; import java.nio.ByteBuffer; public class Main { public static long readLink(ByteBuffer bb) throws IOException { return ((long) bb.getInt() & 0xffffffffL); }//from www .ja v a2 s . co m }