Here you can find the source of getUnsignedLong(ByteBuffer buf)
public static final BigInteger getUnsignedLong(ByteBuffer buf)
//package com.java2s; /*/* w ww .ja va 2s.co m*/ * Copyright 2009-2014 Jagornet Technologies, LLC. All Rights Reserved. * * This software is the proprietary information of Jagornet Technologies, LLC. * Use is subject to license terms. * */ import java.math.BigInteger; import java.nio.ByteBuffer; public class Main { public static final BigInteger getUnsignedLong(ByteBuffer buf) { byte[] data = new byte[8]; buf.get(data); return new BigInteger(data); } }