Stratego/src/util/FileUtil.java
public static Object deserializeObject(String file)
	{
		Object o = null;
		try
		{
			FileInputStream fis = new FileInputStream(file);
			ObjectInputStream ois = new ObjectInputStream(fis);
			
			o = ois.readObject();
			
			fis.close();
			ois.close();
		}
		catch (FileNotFoundException e)
		{
			e.printStackTrace();
			return null;
		}
		catch (IOException e)
		{
			e.printStackTrace();
			return null;
		}
		catch (ClassNotFoundException e)
		{
			e.printStackTrace();
			return null;
		}
		return o;
	}
/**
	 * Deserializes a Object from a file
	 * 
	 * @param file File input
	 * @return Deserialized object
	 */
Deserializes a Object from a file

@param file File input
@return Deserialized object
Deserializes a Object from a file @param file File input @return Deserialized object
public static Object deserializeObject(String file)
	{
		Object o = null;
		try
		{
			FileInputStream fis = new FileInputStream(file);
			ObjectInputStream ois = new ObjectInputStream(fis);
			o = ois.readObject();
			fis.close();
			ois.close();
		}
		catch (FileNotFoundException e)
		{
			e.printStackTrace();
			return null;
		}
		catch (IOException e)
		{
			e.printStackTrace();
			return null;
		}
		catch (ClassNotFoundException e)
		{
			e.printStackTrace();
			return null;
		}
		return o;
	}
public static Object deserializeObject ( String file ) { Object o = null ; try { FileInputStream fis = new FileInputStream ( file ) ; ObjectInputStream ois = new ObjectInputStream ( fis ) ; o = ois . readObject ( ) ; fis . close ( ) ; ois . close ( ) ; } catch ( FileNotFoundException e ) { e . printStackTrace ( ) ; return null ; } catch ( IOException e ) { e . printStackTrace ( ) ; return null ; } catch ( ClassNotFoundException e ) { e . printStackTrace ( ) ; return null ; } return o ; }
Deserializes a Object from a file
Deserializes a Object from a file