Here you can find the source of deserializeObject(byte[] buf)
public static Object deserializeObject(byte[] buf) throws IOException, ClassNotFoundException
//package com.java2s; // Licensed under the Apache License, Version 2.0 (the "License"); import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.ObjectInputStream; public class Main { public static Object deserializeObject(byte[] buf) throws IOException, ClassNotFoundException { try (ObjectInputStream inStream = new ObjectInputStream( new ByteArrayInputStream(buf))) { return inStream.readObject(); }//from ww w . ja v a2 s .co m } }