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