Here you can find the source of deserialize(byte[] bytes)
public static Object deserialize(byte[] bytes)
//package com.java2s; //License from project: Apache License import java.io.ByteArrayInputStream; import java.io.ObjectInputStream; public class Main { public static Object deserialize(byte[] bytes) { ByteArrayInputStream bais = null; try {/*w w w .j a va 2 s . c o m*/ bais = new ByteArrayInputStream(bytes); ObjectInputStream ois = new ObjectInputStream(bais); return ois.readObject(); } catch (Exception e) { } return null; } }