Here you can find the source of deserialize(byte[] serialized)
public static Object deserialize(byte[] serialized)
//package com.java2s; //License from project: Open Source License import java.io.*; public class Main { public static Object deserialize(byte[] serialized) { try {// www . ja va2 s .c o m ByteArrayInputStream bis = new ByteArrayInputStream(serialized); ObjectInputStream ois = new ObjectInputStream(bis); Object ret = ois.readObject(); ois.close(); return ret; } catch (IOException ioe) { throw new RuntimeException(ioe); } catch (ClassNotFoundException e) { throw new RuntimeException(e); } } }