Here you can find the source of deserializeObject(byte[] bytes)
protected static <T> T deserializeObject(byte[] bytes)
//package com.java2s; //License from project: Open Source License import java.io.*; public class Main { protected static <T> T deserializeObject(byte[] bytes) { ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(bytes); try {/*w ww. j av a 2 s. c o m*/ ObjectInputStream objectInputStream = new ObjectInputStream(byteArrayInputStream); return (T) objectInputStream.readObject(); } catch (IOException e) { e.printStackTrace(); } catch (ClassNotFoundException e) { e.printStackTrace(); } throw new RuntimeException(); } }