Here you can find the source of unsign(byte[] b)
public static int[] unsign(byte[] b)
//package com.java2s; //License from project: Apache License public class Main { public static int[] unsign(byte[] b) { int[] v = new int[b.length]; for (int i = 0; i < b.length; i++) { v[i] = unsign(b[i]);//from ww w . j a v a 2 s. c o m } return v; } public static int unsign(byte b) { return b & 0xFF; } }