com.darwinsys.html
Class Tag

java.lang.Object
  extended by com.darwinsys.html.Tag

public class Tag
extends java.lang.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 $

Field Summary
protected static char END
           
protected static char LB
           
protected static char RB
           
 
Constructor Summary
Tag()
           
 
Method Summary
static void dotag(java.io.PrintWriter out, java.lang.String tag)
          Output an empty tag
static void doTag(java.io.PrintWriter out, java.lang.String tag, java.lang.String content)
          Output an body-content tag
static void endTag(java.io.PrintWriter out, java.lang.String tag)
          Output an end tag
static void startTag(java.io.PrintWriter out, java.lang.String tag)
          Output a start tag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LB

protected static final char LB
See Also:
Constant Field Values

RB

protected static final char RB
See Also:
Constant Field Values

END

protected static final char END
See Also:
Constant Field Values
Constructor Detail

Tag

public Tag()
Method Detail

dotag

public static void dotag(java.io.PrintWriter out,
                         java.lang.String tag)
Output an empty tag


doTag

public static void doTag(java.io.PrintWriter out,
                         java.lang.String tag,
                         java.lang.String content)
Output an body-content tag


startTag

public static void startTag(java.io.PrintWriter out,
                            java.lang.String tag)
Output a start tag


endTag

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



Copyright © 1996-2004 Ian F. Darwin. See license.html for usage license.