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