Here you can find the source of newIntBuffer(int paramInt)
public static IntBuffer newIntBuffer(int paramInt)
//package com.java2s; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.nio.IntBuffer; public class Main { public static IntBuffer newIntBuffer(int paramInt) { ByteBuffer localByteBuffer = newByteBuffer(paramInt * 4); return localByteBuffer.asIntBuffer(); }//from w w w .j a v a 2 s.co m public static ByteBuffer newByteBuffer(int paramInt) { ByteBuffer localByteBuffer = ByteBuffer.allocateDirect(paramInt); localByteBuffer.order(ByteOrder.nativeOrder()); return localByteBuffer; } }