Here you can find the source of bytesToInts(byte[] bytes, int shift, int[] spec)
public static int[] bytesToInts(byte[] bytes, int shift, int[] spec)
//package com.java2s; public class Main { public static int[] bytesToInts(byte[] bytes, int shift, int[] spec) { for (int i = 0; i < 4; i++) { spec[i] = 0;/*from w w w . j av a2s . com*/ int index = 4 * i + shift; for (int j = 0; j < 4; j++) { spec[i] = (spec[i] << 8) + (bytes[index + j] & 0xff); } } return spec; } }