Here you can find the source of ubyte2int(byte in)
public static final int ubyte2int(byte in)
//package com.java2s; //License from project: Apache License public class Main { public static final int ubyte2int(byte in) { return (in < 0) ? (int) in + 256 : (int) in; }/*from w w w. j ava 2s .c o m*/ }