Here you can find the source of byteToInt(byte b)
public static int byteToInt(byte b)
//package com.java2s; //License from project: Open Source License public class Main { public static int byteToInt(byte b) { return b & 0xFF; }//from ww w. j a v a 2 s. c om }