Here you can find the source of readDword(ByteBuffer buffer)
public static long readDword(ByteBuffer buffer) throws IOException
//package com.java2s; //License from project: Apache License import java.io.IOException; import java.nio.ByteBuffer; public class Main { public static long readDword(ByteBuffer buffer) throws IOException { long v = (long) buffer.getInt(); if (v < 0) { v += 4294967296L;// www .j av a 2s . co m } return v; } }