Here you can find the source of unsignedIntToLong(byte[] b)
public static final long unsignedIntToLong(byte[] b)
//package com.java2s; public class Main { public static final long unsignedIntToLong(byte[] b) { long l = 0; l |= b[0] & 0xFF;/*from ww w .j ava 2s .com*/ l <<= 8; l |= b[1] & 0xFF; l <<= 8; l |= b[2] & 0xFF; l <<= 8; l |= b[3] & 0xFF; return l; } }