FileDocCategorySizeDatePackage
Cookies.javaAPI DocExample711Sun Feb 08 21:33:52 GMT 2004None

Cookies

public class Cookies extends Object
This is the part of the Cookies application that loads the user-defined subclass.
author
Ian F. Darwin, http://www.darwinsys.com/
version
$Id: Cookies.java,v 1.3 2004/02/09 03:33:51 ian Exp $

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] argv)

		System.out.println("Cookies Application Version 0.0");
		Cooklet cooklet = null;
		String cookletClassName = argv[0];
		try {
			Class cookletClass = Class.forName(cookletClassName);
			Object cookletObject = cookletClass.newInstance();
			cooklet = (Cooklet)cookletObject;
		} catch (Exception e) {
			System.err.println("Error " + cookletClassName + e);
		}
		cooklet.initialize();
		cooklet.work();
		cooklet.terminate();