Here you can find the source of byteToul(byte b)
private static long byteToul(byte b)
//package com.java2s; //License from project: Open Source License public class Main { private static long byteToul(byte b) { return b > 0 ? b : (b & 0x7F + 128); }//from w ww. j a v a 2s . co m }