FileDocCategorySizeDatePackage
Fetch.javaAPI DocExample381Fri Feb 23 12:23:06 GMT 2001None

Fetch

public class Fetch extends Object

Fields Summary
Constructors Summary
Methods Summary
public java.lang.Stringfetch(java.lang.String name)

		// in real life this would look up "name" in some table or database
		return "jabberwocky";
	
public static voidmain(java.lang.String[] args)

 
		String name = "poem", value;
		Fetch f = new Fetch();
		if (System.getProperty("debug.fetch") != null) {
			System.err.println("Fetching " + name);
		}
		value = f.fetch(name);