jodd-core/src/main/java/jodd/util/ObjectUtil.java
public static Object readObject(final File source) throws IOException, ClassNotFoundException {
		Object result = null;
		FileInputStream fis = null;
		BufferedInputStream bis = null;
		ObjectInputStream ois = null;

		try {
			fis = new FileInputStream(source);
			bis = new BufferedInputStream(fis);
			ois = new ObjectInputStream(bis);

			result = ois.readObject();
		} finally {
			StreamUtil.close(ois);
			StreamUtil.close(bis);
			StreamUtil.close(fis);
		}
		return result;
	}
public static Object readObject(final File source) throws IOException, ClassNotFoundException {
		Object result = null;
		FileInputStream fis = null;
		BufferedInputStream bis = null;
		ObjectInputStream ois = null;

		try {
			fis = new FileInputStream(source);
			bis = new BufferedInputStream(fis);
			ois = new ObjectInputStream(bis);

			result = ois.readObject();
		} finally {
			StreamUtil.close(ois);
			StreamUtil.close(bis);
			StreamUtil.close(fis);
		}
		return result;
	}
public static Object readObject ( final File source ) throws IOException , ClassNotFoundException { Object result = null ; FileInputStream fis = null ; BufferedInputStream bis = null ; ObjectInputStream ois = null ; try { fis = new FileInputStream ( source ) ; bis = new BufferedInputStream ( fis ) ; ois = new ObjectInputStream ( bis ) ; result = ois . readObject ( ) ; } finally { StreamUtil . close ( ois ) ; StreamUtil . close ( bis ) ; StreamUtil . close ( fis ) ; } return result ; }
Reads serialized object from the file.
Reads serialized object from the file .