com.darwinsys.util
Class Tag
java.lang.Object
|
+--com.darwinsys.util.Tag
- public class Tag
- extends java.lang.Object
A series of methods for writing HTML/XML tags.
All methods are static for ease of use.
|
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 |
LB
protected static final char LB
RB
protected static final char RB
END
protected static final char END
Tag
public Tag()
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