Java tutorial
//package com.java2s; import java.math.BigInteger; public class Main { /** * <p> * Converts a 8 byte long byte array into a long value * </p> * * @param b * the 8 byte array containing the bits of the long value * @return the converted long object */ public static long byte2long(byte[] b) { return new BigInteger(b).longValue(); } }