Here you can find the source of readCode(byte[] message)
public static int readCode(byte[] message)
//package com.java2s; //License from project: Open Source License import java.nio.ByteBuffer; public class Main { public static int readCode(byte[] message) { byte[] code = { message[0], message[1], message[2], message[3] }; return ByteBuffer.wrap(code).getInt(); }// w w w .j av a 2 s . co m }