FileDocCategorySizeDatePackage
Tag.javaAPI DocExample1110Thu May 29 14:06:30 BST 2003com.darwinsys.html

Tag

public class Tag extends Object
A series of methods for writing HTML/XML tags. Substantially less capable than Jakarta Element Constructor Set (ECS), but simpler to get started with.

All methods are static for ease of use.

version
$Id: Tag.java,v 1.3 2003/05/29 18:06:30 ian Exp $

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());