Here you can find the source of byte2int(byte b)
private static int byte2int(byte b)
//package com.java2s; //License from project: Open Source License public class Main { private static int byte2int(byte b) { if (b >= 0) return b; return (256 + b); }/*from w w w . j av a2 s . c o m*/ }