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, writeOptiondecrIndent, getCanWrapLines, getCurrentLineLength, getDocument, getEndOffset, getIndentLevel, getIndentSpace, getLineLength, getLineSeparator, getStartOffset, getText, getWriter, incrIndent, isLineEmpty, setCanWrapLines, setCurrentLineLength, setIndentSpace, setLineLength, setLineSeparator, write, writepublic 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.AbstractWriterprotected void output(char[] chars,
int start,
int length)
throws java.io.IOException
output in class javax.swing.text.html.HTMLWriterjava.io.IOExceptionprotected void startTag(javax.swing.text.Element elem)
throws java.io.IOException,
javax.swing.text.BadLocationException
startTag in class javax.swing.text.html.HTMLWriterjava.io.IOExceptionjavax.swing.text.BadLocationExceptionprotected void endTag(javax.swing.text.Element elem)
throws java.io.IOException
endTag in class javax.swing.text.html.HTMLWriterjava.io.IOExceptionprotected void text(javax.swing.text.Element elem)
throws javax.swing.text.BadLocationException,
java.io.IOException
text in class javax.swing.text.html.HTMLWriterjavax.swing.text.BadLocationExceptionjava.io.IOExceptionprotected void textAreaContent(javax.swing.text.AttributeSet attr)
throws javax.swing.text.BadLocationException,
java.io.IOException
textAreaContent in class javax.swing.text.html.HTMLWriterjavax.swing.text.BadLocationExceptionjava.io.IOExceptionpublic void write()
throws java.io.IOException,
javax.swing.text.BadLocationException
write in class javax.swing.text.html.HTMLWriterjava.io.IOExceptionjavax.swing.text.BadLocationExceptionprotected void writeLineSeparator()
throws java.io.IOException
writeLineSeparator in class javax.swing.text.html.HTMLWriterjava.io.IOExceptionprotected void indent()
throws java.io.IOException
indent in class javax.swing.text.AbstractWriterjava.io.IOExceptionpublic 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.IOExceptionjavax.swing.text.BadLocationExceptionprotected boolean inRange(javax.swing.text.Element next)
inRange in class javax.swing.text.AbstractWriterprotected void writeAttributes(javax.swing.text.AttributeSet attributeSet)
throws java.io.IOException
writeAttributes in class javax.swing.text.html.HTMLWriterjava.io.IOExceptionpublic void write(java.lang.String string)
write in class javax.swing.text.AbstractWriterpublic java.lang.String toString()
toString in class java.lang.Object