Here you can find the source of toUnsignedInt32LittleEndian(byte[] bytes)
public static int toUnsignedInt32LittleEndian(byte[] bytes)
//package com.java2s; //License from project: Apache License public class Main { public static int toUnsignedInt32LittleEndian(byte[] bytes) { return ((bytes[3] & 0xff) << 24) | ((bytes[2] & 0xff) << 16) | ((bytes[1] & 0xff) << 8) | (bytes[0] & 0xff); }/*from w ww . j a v a 2 s.c o m*/ }