Here you can find the source of unsignedByteToInt(byte b)
private static int unsignedByteToInt(byte b)
//package com.java2s; //License from project: GNU General Public License public class Main { private static int unsignedByteToInt(byte b) { return b & 0xff; }// ww w. ja v a 2 s .c o m }