XhtmlBaseSinkpublic abstract class AbstractXmlSink extends SinkAdapter implements XmlMarkup
Sink for xml markup syntax.COLON, EOL, EQUAL, GREATER_THAN, LEFT_CURLY_BRACKET, LEFT_SQUARE_BRACKET, LESS_THAN, MINUS, PLUS, QUOTE, RIGHT_CURLY_BRACKET, RIGHT_SQUARE_BRACKET, SEMICOLON, SLASH, SPACE, STARJUSTIFY_CENTER, JUSTIFY_LEFT, JUSTIFY_RIGHT, NUMBERING_DECIMAL, NUMBERING_LOWER_ALPHA, NUMBERING_LOWER_ROMAN, NUMBERING_UPPER_ALPHA, NUMBERING_UPPER_ROMAN, ROLE, SECTION_LEVEL_1, SECTION_LEVEL_2, SECTION_LEVEL_3, SECTION_LEVEL_4, SECTION_LEVEL_5, SECTION_LEVEL_6BANG, CDATA, DOCTYPE_START, ENTITY_START, XML_NAMESPACE| Constructor | Description |
|---|---|
AbstractXmlSink() |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getNameSpace() |
Return the default namespace that is prepended to all tags written by this sink.
|
void |
setInsertNewline(boolean insertNewline) |
|
void |
setNameSpace(java.lang.String ns) |
Sets the default namespace that is prepended to all tags written by this sink.
|
protected abstract void |
write(java.lang.String text) |
Write a text to the sink.
|
protected void |
writeEndTag(javax.swing.text.html.HTML.Tag t) |
Ends a Tag without writing an EOL.
|
protected void |
writeEOL() |
Writes a system EOL.
|
protected void |
writeSimpleTag(javax.swing.text.html.HTML.Tag t) |
Starts a simple Tag.
|
protected void |
writeSimpleTag(javax.swing.text.html.HTML.Tag t,
javax.swing.text.MutableAttributeSet att) |
Starts a simple Tag with attributes.
|
protected void |
writeStartTag(javax.swing.text.html.HTML.Tag t) |
Starts a Tag.
|
protected void |
writeStartTag(javax.swing.text.html.HTML.Tag t,
javax.swing.text.MutableAttributeSet att) |
Starts a Tag with attributes.
|
protected void |
writeStartTag(javax.swing.text.html.HTML.Tag t,
javax.swing.text.MutableAttributeSet att,
boolean isSimpleTag) |
Starts a Tag with attributes.
|
enableLogging, getLog, init, unifyEOLsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitanchor, anchor, anchor_, author, author, author_, body, body, body_, bold, bold_, close, comment, date, date, date_, definedTerm, definedTerm, definedTerm_, definition, definition, definition_, definitionList, definitionList, definitionList_, definitionListItem, definitionListItem, definitionListItem_, figure, figure, figure_, figureCaption, figureCaption, figureCaption_, figureGraphics, figureGraphics, flush, head, head, head_, horizontalRule, horizontalRule, italic, italic_, lineBreak, lineBreak, link, link, link_, list, list, list_, listItem, listItem, listItem_, monospaced, monospaced_, nonBreakingSpace, numberedList, numberedList, numberedList_, numberedListItem, numberedListItem, numberedListItem_, pageBreak, paragraph, paragraph, paragraph_, rawText, section, section_, section1, section1_, section2, section2_, section3, section3_, section4, section4_, section5, section5_, section6, section6_, sectionTitle, sectionTitle, sectionTitle_, sectionTitle_, sectionTitle1, sectionTitle1_, sectionTitle2, sectionTitle2_, sectionTitle3, sectionTitle3_, sectionTitle4, sectionTitle4_, sectionTitle5, sectionTitle5_, sectionTitle6, sectionTitle6_, table, table, table_, tableCaption, tableCaption, tableCaption_, tableCell, tableCell, tableCell, tableCell_, tableHeaderCell, tableHeaderCell, tableHeaderCell, tableHeaderCell_, tableRow, tableRow, tableRow_, tableRows, tableRows_, text, text, title, title, title_, unknown, verbatim, verbatim, verbatim_public void setInsertNewline(boolean insertNewline)
public void setNameSpace(java.lang.String ns)
ns - the default namespace.public java.lang.String getNameSpace()
protected void writeStartTag(javax.swing.text.html.HTML.Tag t)
<tag>
t - a non null tagwriteStartTag(javax.swing.text.html.HTML.Tag, javax.swing.text.MutableAttributeSet)protected void writeStartTag(javax.swing.text.html.HTML.Tag t,
javax.swing.text.MutableAttributeSet att)
<tag attName="attValue">
t - a non null tag.att - a set of attributes. May be null.protected void writeStartTag(javax.swing.text.html.HTML.Tag t,
javax.swing.text.MutableAttributeSet att,
boolean isSimpleTag)
<tag attName="attValue">
t - a non null tag.att - a set of attributes. May be null.isSimpleTag - boolean to write as a simple tag.protected void writeEOL()
protected void writeEndTag(javax.swing.text.html.HTML.Tag t)
</tag>.
t - a tag.protected void writeSimpleTag(javax.swing.text.html.HTML.Tag t)
<tag />
t - a non null tagwriteSimpleTag(javax.swing.text.html.HTML.Tag, javax.swing.text.MutableAttributeSet)protected void writeSimpleTag(javax.swing.text.html.HTML.Tag t,
javax.swing.text.MutableAttributeSet att)
<tag attName="attValue" />
t - a non null tag.att - a set of attributes. May be null.protected abstract void write(java.lang.String text)
text - the given text to write