javax.swing.text.html
public class MinimalHTMLWriter extends AbstractWriter
Constructor Summary | |
---|---|
MinimalHTMLWriter(Writer w, StyledDocument doc)
Constructs a MinimalHTMLWriter. | |
MinimalHTMLWriter(Writer w, StyledDocument doc, int pos, int len)
Constructs a MinimalHTMLWriter. |
Method Summary | |
---|---|
protected void | endFontTag()
Ends a span tag. |
protected boolean | inFontTag()
Returns whether the writer is within two span tags. |
protected boolean | isText(Element elem)
Returns whether the element contains text or not. |
protected void | startFontTag(String style)
Starts a span tag. |
protected void | text(Element elem) |
void | write()
Write the entire HTML document. |
protected void | writeAttributes(AttributeSet attr)
Write a set of attributes. |
protected void | writeBody()
Writes the body of the HTML document. |
protected void | writeComponent(Element elem)
Deliberately unimplemented, handles component elements. |
protected void | writeContent(Element elem, boolean needsIndenting)
Writes the content of an element. |
protected void | writeEndParagraph()
Write a paragraph end tag, closes any other open tags. |
protected void | writeEndTag(String endTag)
Write an ending tag and decrement the indent. |
protected void | writeHeader()
Write the HTML header. |
protected void | writeHTMLTags(AttributeSet attr)
Write bold, indent and underline tags. |
protected void | writeImage(Element elem)
Deliberately unimplemented.
|
protected void | writeLeaf(Element e)
Writes a non-text leaf element. |
protected void | writeNonHTMLAttributes(AttributeSet attr)
Write the HTML attributes which do not have tag equivalents,
e.g. attributes other than bold/italic/underlined. |
protected void | writeStartParagraph(Element elem)
Write a paragraph start tag. |
protected void | writeStartTag(String tag)
Write a start tag and increment the indent. |
protected void | writeStyles()
Write the styles used. |
Parameters: w - a Writer, for output. doc - the document
Parameters: w - a Writer, for output. doc - the document pos - start position len - length