Here you can find the source of getIntFromByteArray(final byte[] byteArr)
public static int getIntFromByteArray(final byte[] byteArr)
//package com.java2s; import java.nio.ByteBuffer; public class Main { public static int getIntFromByteArray(final byte[] byteArr) { return ByteBuffer.wrap(byteArr).getInt(); }/* ww w . j a v a2 s .c o m*/ }