Here you can find the source of getFloat(ByteBuffer b, int n)
public static float[] getFloat(ByteBuffer b, int n)
//package com.java2s; //License from project: Apache License import java.nio.ByteBuffer; public class Main { public static float[] getFloat(ByteBuffer b, int n) { float f[] = new float[n]; for (int k = 0; k < f.length; k++) { f[k] = b.getFloat();/* w ww .ja va 2s . com*/ } return f; } }