public abstract class SerialDemoAbstractBase extends Object
Demonstrate use of Serialization. Typical Subclass main will be:
public static void main(String[] s) throws Exception {
new SerialDemoXXX().save(); // in parent class; calls write
new SerialDemoXXX().dump();
}
Fields Summary
Constructors Summary
Methods Summary
public abstract void
dump()
Reads the file and displays it.
public void
save()
The save method in an application
List l = new ArrayList();
// Gather the data
l.add(new MyData("Ian Darwin", "secret_java_cook"));
l.add(new MyData("Abby Brant", "dujordian"));
write(l);