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 voidprotected ElementIteratorprotected voidindent()protected booleanprotected voidoutput(char[] chars, int start, int length) protected voidprotected voidprotected voidtextAreaContent(AttributeSet attr) toString()voidwrite()voidprotected voidwriteAttributes(AttributeSet attributeSet) voidwriteChildElements(Element parentElement) invoke HTML creation for all children of a given element.protected voidMethods inherited from class javax.swing.text.html.HTMLWriter
closeOutUnwantedEmbeddedTags, comment, emptyTag, isBlockTag, matchNameAttribute, selectContent, synthesizedElement, writeEmbeddedTags, writeOptionMethods 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:
getElementIteratorin classAbstractWriter
-
output
- Overrides:
outputin classHTMLWriter- Throws:
IOException
-
startTag
- Overrides:
startTagin classHTMLWriter- Throws:
IOExceptionBadLocationException
-
endTag
- Overrides:
endTagin classHTMLWriter- Throws:
IOException
-
text
- Overrides:
textin classHTMLWriter- Throws:
BadLocationExceptionIOException
-
textAreaContent
- Overrides:
textAreaContentin classHTMLWriter- Throws:
BadLocationExceptionIOException
-
write
- Overrides:
writein classHTMLWriter- Throws:
IOExceptionBadLocationException
-
writeLineSeparator
- Overrides:
writeLineSeparatorin classHTMLWriter- Throws:
IOException
-
indent
- Overrides:
indentin 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:
IOExceptionBadLocationException
-
inRange
- Overrides:
inRangein classAbstractWriter
-
writeAttributes
- Overrides:
writeAttributesin classHTMLWriter- Throws:
IOException
-
write
- Overrides:
writein classAbstractWriter
-
toString
-