Here you can find the source of readIntegerArray(ByteBuffer bb, int length)
public static int[] readIntegerArray(ByteBuffer bb, int length)
//package com.java2s; //License from project: Open Source License import java.nio.ByteBuffer; public class Main { public static int[] readIntegerArray(ByteBuffer bb, int length) { int[] a = new int[length]; for (int i = 0; i < length; i++) { a[i] = bb.getInt();/*w w w . j a v a 2 s.c om*/ } return a; } }