vooga.replay.utilities
Class Serializer

java.lang.Object
  extended by vooga.replay.utilities.Serializer

public class Serializer
extends java.lang.Object

This class contains 2 static methods that are used for serializing and deserializing files with just 1 Object each

Author:
Tom Donnelly, Van Dang, Carrie Ho

Constructor Summary
Serializer()
           
 
Method Summary
static java.lang.Object deserialize(java.lang.String path)
          This method takes a path and deserializes the object from the file at the specified path
static void serialize(java.lang.Object objectToWrite, java.lang.String path)
          This method takes a path and object and writes the object to the file at the specified path
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Serializer

public Serializer()
Method Detail

serialize

public static void serialize(java.lang.Object objectToWrite,
                             java.lang.String path)
This method takes a path and object and writes the object to the file at the specified path

Parameters:
objectToWrite - - object to be serialized to the path
path - - path for the where to place the serialized file

deserialize

public static java.lang.Object deserialize(java.lang.String path)
This method takes a path and deserializes the object from the file at the specified path

Parameters:
path - - path to deserialize the file
Returns: