|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.ds.fw.utils.FwObjectFiler
I can be used to store an object graph to a flat file and read it back. Example: FwObjectFiler.save("temp.ser", new Vector()); ... Vector v = (Vector) FwObjectFiler.load("temp.ser");
| Constructor Summary | |
FwObjectFiler()
|
|
| Method Summary | |
static boolean |
fileExists(java.lang.String filename)
Check if a file with a given as parameter filename exists |
static java.lang.Object |
load(java.lang.String filename)
Load a file |
static void |
save(java.lang.String filename,
java.lang.Object object)
Used to save an object in a file |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FwObjectFiler()
| Method Detail |
public static void save(java.lang.String filename,
java.lang.Object object)
filename - - the name of the file in which the object is going to be savedobject - - the object to be savedpublic static java.lang.Object load(java.lang.String filename)
filename - - the file to be loaded
public static boolean fileExists(java.lang.String filename)
filename - - the file name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||