Here you can find the source of toUnsignedByte(byte b)
public static final int toUnsignedByte(byte b)
//package com.java2s; //License from project: Open Source License public class Main { /**/* w ww.ja v a 2s. c om*/ * This method gets eventually inlined, becoming very fast */ public static final int toUnsignedByte(byte b) { return (0x000000FF & b); } }