Here you can find the source of toInts(byte[] bytes)
public static final int[] toInts(byte[] bytes)
//package com.java2s; public class Main { public static final int[] toInts(byte[] bytes) { if (bytes == null) { return null; }//from w w w . j a va 2 s .c o m int[] data = new int[bytes.length]; for (int i = 0; i < bytes.length; i++) { data[i] = bytes[i]; } return data; } }