Here you can find the source of ArrayToObject(byte[] values)
public static Object[] ArrayToObject(byte[] values)
//package com.java2s; //License from project: Open Source License public class Main { public static Object[] ArrayToObject(byte[] values) { Object[] objects = new Object[values.length]; for (int i = 0; i < values.length; i++) { objects[i] = values[i];/*from w ww . j av a 2 s .c om*/ } return objects; } public static Object[] ArrayToObject(char[] values) { Object[] objects = new Object[values.length]; for (int i = 0; i < values.length; i++) { objects[i] = values[i]; } return objects; } public static Object[] ArrayToObject(short[] values) { Object[] objects = new Object[values.length]; for (int i = 0; i < values.length; i++) { objects[i] = values[i]; } return objects; } public static Object[] ArrayToObject(int[] values) { Object[] objects = new Object[values.length]; for (int i = 0; i < values.length; i++) { objects[i] = values[i]; } return objects; } public static Object[] ArrayToObject(long[] values) { Object[] objects = new Object[values.length]; for (int i = 0; i < values.length; i++) { objects[i] = values[i]; } return objects; } public static Object[] ArrayToObject(float[] values) { Object[] objects = new Object[values.length]; for (int i = 0; i < values.length; i++) { objects[i] = values[i]; } return objects; } public static Object[] ArrayToObject(double[] values) { Object[] objects = new Object[values.length]; for (int i = 0; i < values.length; i++) { objects[i] = values[i]; } return objects; } }