public class SHTMLWriter
extends javax.swing.text.html.HTMLWriter
Constructor and Description |
---|
SHTMLWriter(javax.swing.text.html.HTMLDocument doc)
Constructs the SHTMLWriter with a new StringWriter.
|
SHTMLWriter(java.io.Writer w,
javax.swing.text.html.HTMLDocument doc) |
SHTMLWriter(java.io.Writer w,
javax.swing.text.html.HTMLDocument doc,
int pos,
int len) |
Modifier and Type | Method and Description |
---|---|
protected void |
endTag(javax.swing.text.Element elem) |
protected javax.swing.text.ElementIterator |
getElementIterator() |
protected void |
indent() |
protected boolean |
inRange(javax.swing.text.Element next) |
protected void |
output(char[] chars,
int start,
int length) |
protected void |
startTag(javax.swing.text.Element elem) |
protected void |
text(javax.swing.text.Element elem) |
protected void |
textAreaContent(javax.swing.text.AttributeSet attr) |
java.lang.String |
toString() |
void |
write() |
void |
write(java.lang.String string) |
protected void |
writeAttributes(javax.swing.text.AttributeSet attributeSet) |
void |
writeChildElements(javax.swing.text.Element parentElement)
invoke HTML creation for all children of a given element.
|
protected void |
writeLineSeparator() |
closeOutUnwantedEmbeddedTags, comment, emptyTag, isBlockTag, matchNameAttribute, selectContent, synthesizedElement, writeEmbeddedTags, writeOption
decrIndent, getCanWrapLines, getCurrentLineLength, getDocument, getEndOffset, getIndentLevel, getIndentSpace, getLineLength, getLineSeparator, getStartOffset, getText, getWriter, incrIndent, isLineEmpty, setCanWrapLines, setCurrentLineLength, setIndentSpace, setLineLength, setLineSeparator, write, write
public SHTMLWriter(java.io.Writer w, javax.swing.text.html.HTMLDocument doc, int pos, int len)
public SHTMLWriter(javax.swing.text.html.HTMLDocument doc)
public SHTMLWriter(java.io.Writer w, javax.swing.text.html.HTMLDocument doc)
protected javax.swing.text.ElementIterator getElementIterator()
getElementIterator
in class javax.swing.text.AbstractWriter
protected void output(char[] chars, int start, int length) throws java.io.IOException
output
in class javax.swing.text.html.HTMLWriter
java.io.IOException
protected void startTag(javax.swing.text.Element elem) throws java.io.IOException, javax.swing.text.BadLocationException
startTag
in class javax.swing.text.html.HTMLWriter
java.io.IOException
javax.swing.text.BadLocationException
protected void endTag(javax.swing.text.Element elem) throws java.io.IOException
endTag
in class javax.swing.text.html.HTMLWriter
java.io.IOException
protected void text(javax.swing.text.Element elem) throws javax.swing.text.BadLocationException, java.io.IOException
text
in class javax.swing.text.html.HTMLWriter
javax.swing.text.BadLocationException
java.io.IOException
protected void textAreaContent(javax.swing.text.AttributeSet attr) throws javax.swing.text.BadLocationException, java.io.IOException
textAreaContent
in class javax.swing.text.html.HTMLWriter
javax.swing.text.BadLocationException
java.io.IOException
public void write() throws java.io.IOException, javax.swing.text.BadLocationException
write
in class javax.swing.text.html.HTMLWriter
java.io.IOException
javax.swing.text.BadLocationException
protected void writeLineSeparator() throws java.io.IOException
writeLineSeparator
in class javax.swing.text.html.HTMLWriter
java.io.IOException
protected void indent() throws java.io.IOException
indent
in class javax.swing.text.AbstractWriter
java.io.IOException
public void writeChildElements(javax.swing.text.Element parentElement) throws java.io.IOException, javax.swing.text.BadLocationException
elem
- the element which children are to be written as HTMLjava.io.IOException
javax.swing.text.BadLocationException
protected boolean inRange(javax.swing.text.Element next)
inRange
in class javax.swing.text.AbstractWriter
protected void writeAttributes(javax.swing.text.AttributeSet attributeSet) throws java.io.IOException
writeAttributes
in class javax.swing.text.html.HTMLWriter
java.io.IOException
public void write(java.lang.String string)
write
in class javax.swing.text.AbstractWriter
public java.lang.String toString()
toString
in class java.lang.Object