Here you can find the source of deserializeObject(byte[] bytes)
static public Object deserializeObject(byte[] bytes) throws Exception
//package com.java2s; //License from project: Open Source License import java.io.*; public class Main { static public Object deserializeObject(byte[] bytes) throws Exception { ByteArrayInputStream is = new ByteArrayInputStream(bytes); try {//w ww . j a va2 s.c om ObjectInputStream ois = new ObjectInputStream(is); try { return ois.readObject(); } finally { ois.close(); } } finally { is.close(); } } }