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