FileDocCategorySizeDatePackage
Tag.javaAPI DocExample931Wed Apr 11 18:45:06 BST 2001com.darwinsys.util

Tag

public class Tag extends Object
A series of methods for writing HTML/XML tags. All methods are static for ease of use.

Fields Summary
protected static final char
LB
protected static final char
RB
protected static final char
END
Constructors Summary
Methods Summary
public static voiddoTag(java.io.PrintWriter out, java.lang.String tag, java.lang.String content)
Output an body-content tag

		startTag(out, tag);
		out.println(content);
		endTag(out, tag);
	
public static voiddotag(java.io.PrintWriter out, java.lang.String tag)
Output an empty tag


	     
	       
		startTag(out, tag);
		endTag(out, tag);
	
public static voidendTag(java.io.PrintWriter out, java.lang.String tag)
Output an end tag

		out.print(
			new StringBuffer(LB).append(END).append(tag).append(RB).toString());
	
public static voidstartTag(java.io.PrintWriter out, java.lang.String tag)
Output a start tag

		out.print(
			new StringBuffer(LB).append(tag).append(RB).toString());