Here you can find the source of deserialise(byte[] bytes)
public static Object deserialise(byte[] bytes) throws IOException, ClassNotFoundException
//package com.java2s; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.ObjectInputStream; public class Main { public static Object deserialise(byte[] bytes) throws IOException, ClassNotFoundException { ByteArrayInputStream bais = new ByteArrayInputStream(bytes); ObjectInputStream ois = new ObjectInputStream(bais); Object object = ois.readObject(); ois.close();/*from w w w . j a v a 2 s. c o m*/ return object; } }