Here you can find the source of toUnsignedIntArray(byte[] val)
public static int[] toUnsignedIntArray(byte[] val)
//package com.java2s; /**// w w w . j ava 2 s .c o m * This class is part of JCodec ( www.jcodec.org ) This software is distributed * under FreeBSD License * * @author Jay Codec * */ public class Main { public static int[] toUnsignedIntArray(byte[] val) { int[] result = new int[val.length]; for (int i = 0; i < val.length; i++) result[i] = val[i] & 0xff; return result; } }