FileDocCategorySizeDatePackage
Terms.javaAPI DocExample1538Wed Jan 30 09:05:48 GMT 2002None

Terms

public class Terms extends Object
Statically pre-generate a Terms.html file.
author
Ian Darwin
version
$Id: Terms.java,v 1.7 2002/01/30 14:05:48 ian Exp $

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

		PrintStream out = System.out;
		out.println("<HTML>");
		out.println("<TITLE>Ian Darwins Computer Terms and Acronyms</TITLE>");
		out.println("<BODY>");
		out.println("<H1>Ian Darwins Computer Terms and Acronyms</H1>");
		out.println("<TABLE BORDER=2>");
		out.println("<TR><TH>Term<TH>Meaning</TR>");

		// This part of the Servlet generates a list of lines like
		//	<TR> <TD>JSP <TD>Java Server Pages, a neat tool for ...
		TermsAccessor tax = new TermsAccessor("terms.txt");
		Iterator e = tax.iterator();
		while (e.hasNext()) {
			Term t = (Term)e.next();
			out.print("<TR><TD>");
			out.print(t.term);
			out.print("<TD>");
			out.print(t.definition);
			out.println("</TR>");
		}
		out.println("</TABLE>");
		out.println("<HR></HR>");
		out.println("<A HREF=\"servlet/TermsServletPDF\">Printer-friendly (Acrobat PDF) version</A>");
		out.println("<HR></HR>");
		out.println("<A HREF=\"http://www.darwinsys.com/contact.html\">Ask about another term</A>");
		out.println("<HR></HR>");
		out.println("<A HREF=\"index.html\">Back to HS</A> <A HREF=\"../\">Back to DarwinSys</A>");
		out.println("<HR></HR>");
		out.println("<H6>Produced by $Id: Terms.java,v 1.7 2002/01/30 14:05:48 ian Exp $");
		out.print(" using ");
		out.print(tax.ident);
		out.println("</H6>");