|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectppJava.serie04.oceanlife.OceanFileOps
public class OceanFileOps
Helper-class for file-operations
Constructor Summary | |
---|---|
OceanFileOps()
|
Method Summary | |
---|---|
static OceanInterface |
loadOceanObjectFile(java.lang.String filename,
Ocean ocean)
Reads a file of serialized oceanObjects and adds all items into the ocean |
static void |
saveOceanObjectFile(java.lang.String filename,
Ocean ocean)
Serialize and writes all oceanObjects to a file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OceanFileOps()
Method Detail |
---|
public static void saveOceanObjectFile(java.lang.String filename, Ocean ocean) throws java.io.IOException
filename
-
java.io.IOException
public static OceanInterface loadOceanObjectFile(java.lang.String filename, Ocean ocean) throws java.io.IOException, java.lang.ClassNotFoundException
filename
-
java.io.IOException
java.lang.ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |