Package com.lightdev.app.shtm
Class SHTMLWriter
java.lang.Object
javax.swing.text.AbstractWriter
javax.swing.text.html.HTMLWriter
com.lightdev.app.shtm.SHTMLWriter
FixedHTMLWriter
-
Field Summary
Fields inherited from class javax.swing.text.AbstractWriter
NEWLINE
-
Constructor Summary
ConstructorsConstructorDescriptionSHTMLWriter
(Writer w, HTMLDocument doc) SHTMLWriter
(Writer w, HTMLDocument doc, int pos, int len) SHTMLWriter
(HTMLDocument doc) Constructs the SHTMLWriter with a new StringWriter. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected ElementIterator
protected void
indent()
protected boolean
protected void
output
(char[] chars, int start, int length) protected void
protected void
protected void
textAreaContent
(AttributeSet attr) toString()
void
write()
void
protected void
writeAttributes
(AttributeSet attributeSet) void
writeChildElements
(Element parentElement) invoke HTML creation for all children of a given element.protected void
Methods inherited from class javax.swing.text.html.HTMLWriter
closeOutUnwantedEmbeddedTags, comment, emptyTag, isBlockTag, matchNameAttribute, selectContent, synthesizedElement, writeEmbeddedTags, writeOption
Methods inherited from class javax.swing.text.AbstractWriter
decrIndent, getCanWrapLines, getCurrentLineLength, getDocument, getEndOffset, getIndentLevel, getIndentSpace, getLineLength, getLineSeparator, getStartOffset, getText, getWriter, incrIndent, isLineEmpty, setCanWrapLines, setCurrentLineLength, setIndentSpace, setLineLength, setLineSeparator, write, write
-
Constructor Details
-
SHTMLWriter
-
SHTMLWriter
Constructs the SHTMLWriter with a new StringWriter. See also the method getWrittenString. -
SHTMLWriter
-
-
Method Details
-
getElementIterator
- Overrides:
getElementIterator
in classAbstractWriter
-
output
- Overrides:
output
in classHTMLWriter
- Throws:
IOException
-
startTag
- Overrides:
startTag
in classHTMLWriter
- Throws:
IOException
BadLocationException
-
endTag
- Overrides:
endTag
in classHTMLWriter
- Throws:
IOException
-
text
- Overrides:
text
in classHTMLWriter
- Throws:
BadLocationException
IOException
-
textAreaContent
- Overrides:
textAreaContent
in classHTMLWriter
- Throws:
BadLocationException
IOException
-
write
- Overrides:
write
in classHTMLWriter
- Throws:
IOException
BadLocationException
-
writeLineSeparator
- Overrides:
writeLineSeparator
in classHTMLWriter
- Throws:
IOException
-
indent
- Overrides:
indent
in classAbstractWriter
- Throws:
IOException
-
writeChildElements
invoke HTML creation for all children of a given element.- Parameters:
elem
- the element which children are to be written as HTML- Throws:
IOException
BadLocationException
-
inRange
- Overrides:
inRange
in classAbstractWriter
-
writeAttributes
- Overrides:
writeAttributes
in classHTMLWriter
- Throws:
IOException
-
write
- Overrides:
write
in classAbstractWriter
-
toString
-