Here you can find the source of byte2integer(byte b)
public static int byte2integer(byte b)
//package com.java2s; //License from project: Apache License public class Main { public static int byte2integer(byte b) { return b << 24 >> 24; }//from w ww . ja v a2 s . co m }