Here you can find the source of byte2Int(byte b)
public static final int byte2Int(byte b)
//package com.java2s; public class Main { public static final int byte2Int(byte b) { return (b & 0xFF); }/* ww w . j a v a 2 s. c om*/ }