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