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