FileDocCategorySizeDatePackage
SerialDemoAbstractBase.javaAPI DocExample852Sun Mar 14 16:03:54 GMT 2004None

SerialDemoAbstractBase

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 voiddump()
Reads the file and displays it.

public voidsave()
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);
	
public abstract voidwrite(java.lang.Object theGraph)
Does the actual serialization