Here you can find the source of unsigned8(byte b)
public static int unsigned8(byte b)
//package com.java2s; //License from project: Apache License public class Main { public static int unsigned8(byte b) { return b & 0xFF; }// w w w . ja v a 2 s . co m }