Here you can find the source of loadSerializedObjectWithExceptions(String fileName)
public static Object loadSerializedObjectWithExceptions(String fileName) throws Exception
//package com.java2s; //License from project: Open Source License import java.io.*; public class Main { public static Object loadSerializedObjectWithExceptions(String fileName) throws Exception { InputStream file = new FileInputStream(fileName); InputStream buffer = new BufferedInputStream(file); ObjectInput input = new ObjectInputStream(buffer); Object object = input.readObject(); input.close();/*from w ww . j a va 2s. co m*/ return object; } }