Here you can find the source of unsignedByteToIntArray(byte[] bytes)
public static int[] unsignedByteToIntArray(byte[] bytes)
//package com.java2s; //License from project: GNU General Public License public class Main { public static int[] unsignedByteToIntArray(byte[] bytes) { int[] ints = new int[bytes.length]; for (int i = 0; i < bytes.length; i++) { ints[i] = unsignedByteToInt(bytes[i]); }// www. j a va 2 s . c o m return ints; } private static int unsignedByteToInt(byte b) { return b & 0xff; } }