Here you can find the source of deserialize(String path)
public static Object deserialize(String path) throws IOException, ClassNotFoundException
//package com.java2s; //License from project: Apache License import java.io.*; public class Main { public static Object deserialize(String path) throws IOException, ClassNotFoundException { FileInputStream fin = new FileInputStream(path); ObjectInputStream oin = new ObjectInputStream(fin); Object value = oin.readObject(); oin.close();/* w w w . j a va 2 s. c o m*/ fin.close(); return value; } }