Here you can find the source of byteToDoubleArray(byte[] ar)
public static double[] byteToDoubleArray(byte[] ar)
//package com.java2s; //License from project: Open Source License public class Main { public static double[] byteToDoubleArray(byte[] ar) { // return toDoubleArray(ar) if (ar != null) { double[] ret = new double[ar.length]; for (int i = 0; i < ar.length; i++) { ret[i] = (double) ar[i]; }/*from w w w .j a va 2 s.co m*/ return ret; } else { return null; } } }