The Encog Project

org.encog.util
Class SerializeObject

java.lang.Object
  extended by org.encog.util.SerializeObject

public final class SerializeObject
extends java.lang.Object

SerializeObject: Load or save an object using Java serialization.


Method Summary
static java.io.Serializable load(java.lang.String filename)
          Load an object.
static void save(java.lang.String filename, java.io.Serializable object)
          Save the specified object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

load

public static java.io.Serializable load(java.lang.String filename)
                                 throws java.io.IOException,
                                        java.lang.ClassNotFoundException
Load an object.

Parameters:
filename - The filename.
Returns:
The loaded object.
Throws:
java.io.IOException - An IO error occurred.
java.lang.ClassNotFoundException - The specified class can't be found.

save

public static void save(java.lang.String filename,
                        java.io.Serializable object)
                 throws java.io.IOException
Save the specified object.

Parameters:
filename - The filename to save.
object - The object to save.
Throws:
java.io.IOException - An IO error occurred.

The Encog Project