|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.eriksilkensen.util.IOUtilities
public class IOUtilities
Provides a set of i/o utility methods.
| Method Summary | |
|---|---|
static java.lang.Object |
deserializeObject(java.lang.String path)
Deserializes the Object found at the path. |
static java.lang.Object[] |
deserializeObject(java.lang.String path,
int numObj)
Deserializes all of the Objects found at the path. |
static void |
serializeObject(java.io.Serializable[] obj,
java.lang.String path)
Serializes the Serializable[] obj, saving it in a file at the path. |
static void |
serializeObject(java.io.Serializable obj,
java.lang.String path)
Serializes the Serializable obj, saving it in a file at the path. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void serializeObject(java.io.Serializable obj,
java.lang.String path)
throws java.io.IOException
obj - the Serializable to be serializedpath - the path for the .ser file
java.io.IOException
public static void serializeObject(java.io.Serializable[] obj,
java.lang.String path)
throws java.io.IOException
obj - the Serializable[] to be serializedpath - the path for the .ser file
java.io.IOException
public static java.lang.Object deserializeObject(java.lang.String path)
throws java.io.IOException,
java.lang.ClassNotFoundException
path - the path for the .ser file
java.io.IOException
java.lang.ClassNotFoundException
public static java.lang.Object[] deserializeObject(java.lang.String path,
int numObj)
throws java.io.IOException,
java.lang.ClassNotFoundException
path - the path for the .ser filenumObj - the number of Objects to deserialize
java.io.IOException
java.lang.ClassNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||