Here you can find the source of deserialize(byte[] data)
public static Object deserialize(byte[] data)
//package com.java2s; //License from project: Open Source License import java.io.*; public class Main { public static Object deserialize(byte[] data) { ByteArrayInputStream in = new ByteArrayInputStream(data); ObjectInputStream is = null; try {// w ww . j a v a 2 s .c o m is = new ObjectInputStream(in); return is.readObject(); } catch (IOException e) { e.printStackTrace(); } catch (ClassNotFoundException e) { e.printStackTrace(); } finally { try { if (is != null) { is.close(); } in.close(); } catch (IOException e) { e.printStackTrace(); } } return null; } }