Methods Summary |
---|
public void | aEnd()Print </A> tag.
print("</A>");
|
public void | aName(java.lang.String name)Print anchor <A NAME="name"> tag.
print("<A NAME=\"" + name + "\">");
|
public void | address()Print <ADDRESS> tag. Add a newline character at the end.
println("<ADDRESS>");
|
public void | addressEnd()Print </ADDRESS> tag. Add a newline character at the end.
println("</ADDRESS>");
|
public void | anchor(java.lang.String name, java.lang.String content)Print contents within anchor <A NAME="name"> tags.
aName(name);
print(content);
aEnd();
|
public void | anchor(java.lang.String name)Print anchor <A NAME="name"> and </A>tags. Print comment string
"<!-- -->" within those tags.
aName(name);
print("<!-- -->");
aEnd();
|
public void | blockquote()Print <BLOCKQUOTE> tag. Add a newline character at the end.
println("<BLOCKQUOTE>");
|
public void | blockquoteEnd()Print </BLOCKQUOTE> tag. Add a newline character at the end.
println("</BLOCKQUOTE>");
|
public void | body()Print <BODY> tag. Add a newline character at the end.
println("<BODY>");
|
public void | body(java.lang.String bgcolor)Print <BODY BGCOLOR="bgcolor"> tag. Add a newline character at the end.
println("<BODY BGCOLOR=\"" + bgcolor + "\">");
|
public void | bodyEnd()Print </BODY> tag. Add a newline character at the end.
println("</BODY>");
|
public void | bold()Print <B> tag.
print("<B>");
|
public void | bold(java.lang.String text)Print text passed, in bold format using <B> and </B> tags.
bold();
print(text);
boldEnd();
|
public void | boldEnd()Print </B> tag.
print("</B>");
|
public void | br()Print newline and then print <BR> tag. Add a newline character at the
end.
println();
println("<BR>");
|
public void | center()Print <CENTER> tag. Add a newline character at the end.
println("<CENTER>");
|
public void | centerEnd()Print </CENTER> tag. Add a newline character at the end.
println("</CENTER>");
|
public void | code()Print <CODE> tag.
print("<CODE>");
|
public void | codeEnd()Print </CODE> tag.
print("</CODE>");
|
public java.lang.String | codeText(java.lang.String text)
return "<CODE>" + text + "</CODE>";
|
public void | commentEnd()Print "-->" comment end string. Add a newline character at the end.
println("-->");
|
public void | commentStart()Print "<!-- " comment start string.
print("<!-- ");
|
public void | dd()Print <DT> tag.
print("<DD>");
|
public void | ddEnd()Print </DD> tag. Add a newline character at the end.
println("</DD>");
|
public void | dl()Print <DL> tag. Add a newline character at the end.
println("<DL>");
|
public void | dlEnd()Print </DL> tag. Add a newline character at the end.
println("</DL>");
|
public void | dt()Print <DT> tag.
print("<DT>");
|
public void | em()Print <EM> tag. Add a newline character at the end.
println("<EM>");
|
public void | emEnd()Print </EM> tag. Add a newline character at the end.
println("</EM>");
|
public void | font(java.lang.String size)Print <FONT SIZE="size"> tag. Add a newline character at the end.
println("<FONT SIZE=\"" + size + "\">");
|
public void | fontEnd()Print </FONT> tag.
print("</FONT>");
|
public void | fontSizeStyle(java.lang.String size, java.lang.String stylename)Print <FONT SIZE="size" CLASS="stylename"> tag. Add a newline character
at the end.
println("<FONT size=\"" + size + "\" CLASS=\"" + stylename + "\">");
|
public void | fontStyle(java.lang.String stylename)Print <FONT CLASS="stylename"> tag. Add a newline character at the end.
print("<FONT CLASS=\"" + stylename + "\">");
|
public static java.io.Writer | genWriter(java.lang.String path, java.lang.String filename, java.lang.String docencoding)Create the directory path for the file to be generated, construct
FileOutputStream and OutputStreamWriter depending upon docencoding.
FileOutputStream fos;
if (path != null) {
DirectoryManager.createDirectory(path);
fos = new FileOutputStream(((path.length() > 0)?
path + File.separator: "") + filename);
} else {
fos = new FileOutputStream(filename);
}
if (docencoding == null) {
OutputStreamWriter oswriter = new OutputStreamWriter(fos);
docencoding = oswriter.getEncoding();
return oswriter;
} else {
return new OutputStreamWriter(fos, docencoding);
}
|
public java.lang.String | getBold()Get the "<B>" string.
return "<B>";
|
public java.lang.String | getBoldEnd()Get the "</B>" string.
return "</B>";
|
public java.lang.String | getCode()Get the "<CODE>" string.
return "<CODE>";
|
public java.lang.String | getCodeEnd()Get the "</CODE>" string.
return "</CODE>";
|
public java.lang.String | getFontColor(java.lang.String color)Get the "<FONT COLOR="color">" string.
return "<FONT COLOR=\"" + color + "\">";
|
public java.lang.String | getFontEnd()Get the "</FONT>" string.
return "</FONT>";
|
public void | h1()Print <H1> tag. Add a newline character at the end.
println("<H1>");
|
public void | h1(java.lang.String text)Print text with <H1> tag. Also adds </H1> tag. Add a newline character
at the end of the text.
h1();
println(text);
h1End();
|
public void | h1End()Print </H1> tag. Add a newline character at the end.
println("</H1>");
|
public void | h2()Print <H2> tag. Add a newline character at the end.
println("<H2>");
|
public void | h2(java.lang.String text)Print text with <H2> tag. Also adds </H2> tag. Add a newline character
at the end of the text.
h2();
println(text);
h2End();
|
public void | h2End()Print </H2> tag. Add a newline character at the end.
println("</H2>");
|
public void | h3()Print <H3> tag. Add a newline character at the end.
println("<H3>");
|
public void | h3(java.lang.String text)Print text with <H3> tag. Also adds </H3> tag. Add a newline character
at the end of the text.
h3();
println(text);
h3End();
|
public void | h3End()Print </H3> tag. Add a newline character at the end.
println("</H3>");
|
public void | h4()Print <H4> tag. Add a newline character at the end.
println("<H4>");
|
public void | h4(java.lang.String text)Print text with <H4> tag. Also adds </H4> tag. Add a newline character
at the end of the text.
h4();
println(text);
h4End();
|
public void | h4End()Print </H4> tag. Add a newline character at the end.
println("</H4>");
|
public void | h5()Print <H5> tag. Add a newline character at the end.
println("<H5>");
|
public void | h5End()Print </H5> tag. Add a newline character at the end.
println("</H5>");
|
public void | head()Print <HEAD> tag. Add a newline character at the end.
println("<HEAD>");
|
public void | headEnd()Print </HEAD> tag. Add a newline character at the end.
println("</HEAD>");
|
public void | hr()Print <HR> tag. Add a newline character at the end.
println("<HR>");
|
public void | hr(int size, int widthPercent)Print <HR SIZE="size" WIDTH="widthpercent%"> tag. Add a newline
character at the end.
println("<HR SIZE=\"" + size + "\" WIDTH=\"" + widthPercent + "%\">");
|
public void | hr(int size, java.lang.String noshade)Print <HR SIZE="size" NOSHADE> tag. Add a newline character at the end.
println("<HR SIZE=\"" + size + "\" NOSHADE>");
|
public void | html()Print <HTML> tag. Add a newline character at the end.
println("<HTML>");
|
public void | htmlEnd()Print </HTML> tag. Add a newline character at the end.
println("</HTML>");
|
public void | img(java.lang.String imggif, java.lang.String imgname, int width, int height)Print HTML <IMG SRC="imggif" WIDTH="width" HEIGHT="height" ALT="imgname>
tag. It prepends the "images" directory name to the "imggif". This
method is used for oneone format generation. Add a newline character
at the end.
println("<IMG SRC=\"images/" + imggif + ".gif\""
+ " WIDTH=\"" + width + "\" HEIGHT=\"" + height
+ "\" ALT=\"" + imgname + "\">");
|
public void | italic()Print <I> tag.
print("<I>");
|
public void | italicEnd()Print </I> tag.
print("</I>");
|
public void | italics(java.lang.String text)Print text passed, in Italics using <I> and </I> tags.
print("<I>");
print(text);
println("</I>");
|
public java.lang.String | italicsText(java.lang.String text)Return, text passed, with Italics <I> and </I> tags, surrounding it.
So if the text passed is "Hi", then string returned will be "<I>Hi</I>".
return "<I>" + text + "</I>";
|
public void | li()Print <LI> tag.
print("<LI>");
|
public void | li(java.lang.String type)Print <LI TYPE="type"> tag.
print("<LI TYPE=\"" + type + "\">");
|
public void | link(java.lang.String str)Print <LINK str> tag.
println("<LINK " + str + ">");
|
public void | menu()Print <MENU> tag. Add a newline character at the end.
println("<MENU>");
|
public void | menuEnd()Print </MENU> tag. Add a newline character at the end.
println("</MENU>");
|
public void | noFrames()Print <NOFRAMES> tag. Add a newline character at the end.
println("<NOFRAMES>");
|
public void | noFramesEnd()Print </NOFRAMES> tag. Add a newline character at the end.
println("</NOFRAMES>");
|
public void | p()Print newline and then print <P> tag. Add a newline character at the
end.
println();
println("<P>");
|
public void | pre()Print <PRE> tag. Add a newline character at the end.
println("<PRE>");
|
public void | preEnd()Print </PRE> tag. Add a newline character at the end.
println("</PRE>");
|
public void | space()Print " ", non-breaking space.
print(" ");
|
public void | sup()Print <SUP> tag. Add a newline character at the end.
println("<SUP>");
|
public void | supEnd()Print </SUP> tag. Add a newline character at the end.
println("</SUP>");
|
public void | table(int border, java.lang.String width, int cellpadding, int cellspacing)Print HTML <TABLE BORDER="border" WIDTH="width"
CELLPADDING="cellpadding" CELLSPACING="cellspacing"> tag.
println("\n<TABLE BORDER=\"" + border +
"\" WIDTH=\"" + width +
"\" CELLPADDING=\"" + cellpadding +
"\" CELLSPACING=\"" + cellspacing + "\">");
|
public void | table(int border, int cellpadding, int cellspacing)Print HTML <TABLE BORDER="border" CELLPADDING="cellpadding"
CELLSPACING="cellspacing"> tag.
println("\n<TABLE BORDER=\"" + border +
"\" CELLPADDING=\"" + cellpadding +
"\" CELLSPACING=\"" + cellspacing + "\">");
|
public void | table(int border, java.lang.String width)Print HTML <TABLE BORDER="border" WIDTH="width">
println("\n<TABLE BORDER=\"" + border +
"\" WIDTH=\"" + width + "\">");
|
public void | table()Print the HTML table tag with border size 0 and width 100%.
table(0, "100%");
|
public void | tableEnd()Print </TABLE> tag. Add a newline character at the end.
println("</TABLE>");
|
public void | td()Print <TD> tag.
print("<TD>");
|
public void | tdAlign(java.lang.String align)Print <TD ALIGN="align"> tag. Adds a newline character
at the end.
print("<TD ALIGN=\"" + align + "\">");
|
public void | tdAlignRowspan(java.lang.String align, int rowspan)Print <TD ALIGN="align" ROWSPAN=rowspan> tag.
print("<TD ALIGN=\"" + align + "\" ROWSPAN=" + rowspan + ">");
|
public void | tdAlignVAlign(java.lang.String align, java.lang.String valign)Print <TD ALIGN="align" VALIGN="valign"> tag.
print("<TD ALIGN=\"" + align + "\" VALIGN=\"" + valign + "\">");
|
public void | tdAlignVAlignRowspan(java.lang.String align, java.lang.String valign, int rowspan)Print <TD ALIGN="align" VALIGN="valign" ROWSPAN=rowspan> tag.
print("<TD ALIGN=\"" + align + "\" VALIGN=\"" + valign
+ "\" ROWSPAN=" + rowspan + ">");
|
public void | tdBgcolorStyle(java.lang.String color, java.lang.String stylename)Print <TD BGCOLOR="color" CLASS="stylename"> tag.
print("<TD BGCOLOR=\"" + color + "\" CLASS=\"" + stylename + "\">");
|
public void | tdColspan(int i)Print <TD COLSPAN=i> tag.
print("<TD COLSPAN=" + i + ">");
|
public void | tdColspanBgcolorStyle(int i, java.lang.String color, java.lang.String stylename)Print <TD COLSPAN=i BGCOLOR="color" CLASS="stylename"> tag.
print("<TD COLSPAN=" + i + " BGCOLOR=\"" + color + "\" CLASS=\"" +
stylename + "\">");
|
public void | tdEnd()Print </TD> tag. Add a newline character at the end.
println("</TD>");
|
public void | tdNowrap()Print <TD NOWRAP> tag.
print("<TD NOWRAP>");
|
public void | tdVAlign(java.lang.String valign)Print <TD VALIGN="valign"> tag.
print("<TD VALIGN=\"" + valign + "\">");
|
public void | tdVAlignClass(java.lang.String align, java.lang.String stylename)Print <TD ALIGN="align" CLASS="stylename"> tag.
print("<TD VALIGN=\"" + align + "\" CLASS=\"" + stylename + "\">");
|
public void | tdWidth(java.lang.String width)Print <TD WIDTH="width"> tag.
print("<TD WIDTH=\"" + width + "\">");
|
public void | title()Print <TITLE> tag. Add a newline character at the end.
println("<TITLE>");
|
public void | titleEnd()Print </TITLE> tag. Add a newline character at the end.
println("</TITLE>");
|
public void | tr()Print <TR> tag. Add a newline character at the end.
println("<TR>");
|
public void | trAlignVAlign(java.lang.String align, java.lang.String valign)Print <TR ALIGN="align" VALIGN="valign"> tag. Adds a newline character
at the end.
println("<TR ALIGN=\"" + align + "\" VALIGN=\"" + valign + "\">");
|
public void | trBgcolor(java.lang.String color)Print <TR BGCOLOR="color"> tag. Adds a newline character at the end.
println("<TR BGCOLOR=\"" + color + "\">");
|
public void | trBgcolorStyle(java.lang.String color, java.lang.String stylename)Print <TR BGCOLOR="color" CLASS="stylename"> tag. Adds a newline character
at the end.
println("<TR BGCOLOR=\"" + color + "\" CLASS=\"" + stylename + "\">");
|
public void | trEnd()Print </TR> tag. Add a newline character at the end.
println("</TR>");
|
public void | ul()Print <UL> tag. Add a newline character at the end.
println("<UL>");
|
public void | ulEnd()Print </UL> tag. Add a newline character at the end.
println("</UL>");
|