saveopen.application
Class Saver
java.lang.Object
|
+--saveopen.application.Saver
- public final class Saver
- extends java.lang.Object
This class provides two static methods,
save()
and open()
.
Since this is all, the class has been declared final
,
so that it cannot be instantiated (which would serve no purpose).
Constructor Summary |
Saver()
|
Method Summary |
static java.lang.Object |
open(java.lang.String filename)
Retrieves the Serializable component in the file with the
given name. |
static void |
save(java.io.Serializable target,
java.lang.String filename)
Saves a given Serializable component into a file with the
given name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Saver
public Saver()
save
public static void save(java.io.Serializable target,
java.lang.String filename)
- Saves a given Serializable component into a file with the
given name.
open
public static java.lang.Object open(java.lang.String filename)
- Retrieves the Serializable component in the file with the
given name.