Here you can find the source of byteArrayToFloatArray(byte[] bytes)
public static float[] byteArrayToFloatArray(byte[] bytes)
//package com.java2s; //License from project: Open Source License public class Main { public static float[] byteArrayToFloatArray(byte[] bytes) { float[] floats = new float[bytes.length / 4]; for (int i = 0; i < floats.length; ++i) floats[i] = readFloatFromBytes(bytes, i * 4); return floats; }/*w ww . j av a2s .c o m*/ public static float readFloatFromBytes(byte[] bytes, int start) { Integer i = bytes[start] << 24; i |= (bytes[start + 1] & 255) << 16; i |= (bytes[start + 2] & 255) << 8; i |= (bytes[start + 3] & 255); return Float.intBitsToFloat(i); } }