public class FileLoader
extends java.lang.Object
| Constructor and Description |
|---|
FileLoader() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
deserializeFromFile(java.io.File inputFile)
Deserializes an object from the specified file.
|
static void |
serializeToFile(java.io.File outputFile,
java.io.Serializable data)
Serializes an object to the specified file.
|
public static java.lang.Object deserializeFromFile(java.io.File inputFile)
throws java.io.IOException,
java.lang.ClassNotFoundException
inputFile - The file which contains the object to get deseraliased.java.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic static void serializeToFile(java.io.File outputFile,
java.io.Serializable data)
throws java.io.IOException
outputFile - The file to which we store the selializes object.data - The object to be deseraliased.java.io.IOException