Here you can find the source of byte2intarr(byte[] in)
public static int[] byte2intarr(byte[] in)
//package com.java2s; /******************************************************************* * DUBwise//from w ww .j ava 2 s .co m * by Marcus -Ligi- Bueschleb * http://ligi.de * * License: * * http://creativecommons.org/licenses/by-nc-sa/2.0/de/ * (Creative Commons / Non Commercial / Share Alike) * Additionally to the Creative Commons terms it is not allowed * to use this project in _any_ violent manner! * This explicitly includes that lethal Weapon owning "People" and * Organisations (e.g. Army & Police) * are not allowed to use this Project! * **********************************************************************/ public class Main { public static int[] byte2intarr(byte[] in) { int[] out = new int[in.length]; for (int i = 0; i < in.length; i++) { out[i] = in[i]; } return out; } }