|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pz.platypus.plugin.html.HtmlOutfile
public class HtmlOutfile
Manage output to the HTML file
Field Summary | |
---|---|
(package private) org.apache.ecs.xhtml.body |
htmlBody
|
(package private) HtmlData |
htmlData
the HTML data structure |
(package private) org.apache.ecs.XhtmlDocument |
htmlDoc
|
private java.io.PrintStream |
htmlFile
|
private java.lang.String |
htmlFileName
|
private boolean |
inFont
|
private boolean |
inParagraph
|
private boolean |
openStatus
|
private int |
tab
|
Constructor Summary | |
---|---|
HtmlOutfile()
|
Method Summary | |
---|---|
private boolean |
alreadyProcessingFont()
|
void |
close()
Outputs any material that has not yet been output. |
private void |
configureHead()
The "once only" settings - We set 1. |
private void |
configureHtmlPrettyPrint()
A hack to pretty-print the generated XHTML. |
void |
emitFontSizeTag()
|
void |
emitText(java.lang.String s)
Writes text to the HTML file. |
void |
endCurrentParagraphIfAny()
|
private void |
endFontTagIfAny()
|
boolean |
getInParagraph()
|
void |
handleEof()
If we have started a paragraph, or a font or any other tag - we need to close it. |
void |
handleNewFontFace()
When we get a command to start off a new font tag, we need to close the previous font tag, ***if any***. |
boolean |
isOpen()
|
void |
open(GDD gdd,
java.lang.String filename,
HtmlData htmlData)
Open the output file. |
private void |
openHtmlFile(java.lang.String filename)
|
private void |
restartFontTagIfAny()
|
void |
setHtmlData(HtmlData htmlData)
|
private void |
setInParagraph(boolean b)
|
void |
setMarginTop()
|
private void |
startNewFontFace()
We need to close previous font (if any) - and output a new font tag |
private void |
startNewFontSize()
|
void |
startNewParagraph()
Starts a new html Paragraph. |
private java.lang.String |
wrapInQuotes(java.lang.String s)
Useful when we wish to output a double quoted string Eases out the all the "escape a double quote" business. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private boolean openStatus
HtmlData htmlData
private java.lang.String htmlFileName
private java.io.PrintStream htmlFile
org.apache.ecs.XhtmlDocument htmlDoc
org.apache.ecs.xhtml.body htmlBody
private boolean inParagraph
private int tab
private boolean inFont
Constructor Detail |
---|
public HtmlOutfile()
Method Detail |
---|
private void configureHead()
private void configureHtmlPrettyPrint()
public void open(GDD gdd, java.lang.String filename, HtmlData htmlData) throws java.io.IOException
gdd
- Global document datafilename
- name of file to openhtmlData
-
java.io.IOException
- in event of a problem opening the fileprivate void openHtmlFile(java.lang.String filename) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public void close() throws FileCloseException
FileCloseException
- if an error occurs closing the filepublic void startNewParagraph()
. Records the fact that we have started a paragraph.
public void endCurrentParagraphIfAny()
public boolean getInParagraph()
private void setInParagraph(boolean b)
public void emitText(java.lang.String s)
s
- the text to be writtenpublic boolean isOpen()
public void setHtmlData(HtmlData htmlData)
private java.lang.String wrapInQuotes(java.lang.String s)
s
-
public void emitFontSizeTag()
private void startNewFontSize()
public void handleEof()
private boolean alreadyProcessingFont()
public void setMarginTop()
public void handleNewFontFace()
private void restartFontTagIfAny()
private void endFontTagIfAny()
private void startNewFontFace()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |