Here you can find the source of unsign(byte b)
public static int unsign(byte b)
//package com.java2s; /*//from w ww. java2s . c o m * Copyright 2002 Stewart Allen <stewart@neuron.com> * * This program is free software; you can redistribute it and/or * modify it under the terms of the Artistic License. */ public class Main { public static int unsign(byte b) { return b & 0xff; } }