Here you can find the source of toIntArray(byte[] byteArray)
public static int[] toIntArray(byte[] byteArray)
//package com.java2s; //License from project: Open Source License import java.nio.ByteBuffer; import java.nio.IntBuffer; public class Main { /**/* ww w .j a va 2 s . c om*/ * Returns a new integer array using data from the given byte array. */ public static int[] toIntArray(byte[] byteArray) { IntBuffer intBuffer = ByteBuffer.wrap(byteArray).asIntBuffer(); int[] intArray = new int[intBuffer.limit()]; intBuffer.get(intArray); return intArray; } }