org.apache.maven.doxia.markup.HtmlMarkup, org.apache.maven.doxia.markup.Markup, org.apache.maven.doxia.markup.XmlMarkup, XdocMarkupXmlWriterXdocSinkpublic class XdocSink extends org.apache.maven.doxia.sink.impl.XhtmlBaseSink implements XdocMarkup
A, ABBR, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CDATA_TYPE, CENTER, CITE, CODE, COL, COLGROUP, DD, DEL, DFN, DIR, DIV, DL, DT, EM, ENTITY_TYPE, FIELDSET, FONT, FORM, FRAME, FRAMESET, H1, H2, H3, H4, H5, H6, HEAD, HR, HTML, I, IFRAME, IMG, INPUT, INS, ISINDEX, KBD, LABEL, LEGEND, LI, LINK, MAP, MENU, META, NOFRAMES, NOSCRIPT, OBJECT, OL, OPTGROUP, OPTION, P, PARAM, PRE, Q, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, STYLE, SUB, SUP, TABLE, TAG_TYPE_END, TAG_TYPE_SIMPLE, TAG_TYPE_START, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VARCOLON, 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_6AUTHOR_TAG, DATE_TAG, DOCUMENT_TAG, MACRO_TAG, PROPERTIES_TAG, SECTION_TAG, SOURCE_TAG, SUBSECTION_TAG, XDOC_NAMESPACE, XDOC_SYSTEM_ID| Modifier | Constructor | Description |
|---|---|---|
protected |
XdocSink(java.io.Writer writer) |
Constructor, initialize the Writer.
|
protected |
XdocSink(java.io.Writer writer,
java.lang.String encoding) |
Constructor, initialize the Writer and tells which encoding is used.
|
protected |
XdocSink(java.io.Writer writer,
java.lang.String encoding,
java.lang.String languageId) |
Constructor, initialize the Writer and tells which encoding and languageId are used.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
author_() |
|
void |
body() |
|
void |
body(org.apache.maven.doxia.sink.SinkEventAttributes attributes) |
|
void |
body_() |
|
void |
close() |
|
void |
date_() |
|
void |
head() |
|
void |
head(org.apache.maven.doxia.sink.SinkEventAttributes attributes) |
|
void |
head_() |
|
protected void |
init() |
|
void |
link(java.lang.String name,
java.lang.String target) |
Adds a link with an optional target.
|
protected void |
markup(java.lang.String text) |
Deprecated.
use write(String)
|
protected void |
onSection(int depth,
org.apache.maven.doxia.sink.SinkEventAttributes attributes) |
Starts a section.
|
protected void |
onSection_(int depth) |
Ends a section.
|
protected void |
onSectionTitle(int depth,
org.apache.maven.doxia.sink.SinkEventAttributes attributes) |
Starts a section title.
|
protected void |
onSectionTitle_(int depth) |
Ends a section title.
|
void |
tableRow() |
The default valign is
top. |
void |
tableRows(int[] justification,
boolean grid) |
The default align is
center. |
void |
title() |
|
void |
title_() |
|
void |
verbatim(org.apache.maven.doxia.sink.SinkEventAttributes attributes) |
|
void |
verbatim_() |
enableLogging, getLog, unifyEOLsgetNameSpace, setInsertNewline, setNameSpace, writeEOL, writeSimpleTag, writeSimpleTag, writeStartTag, writeStartTagclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitauthor, author, date, date, definitionListItem, definitionListItem, definitionListItem_, section6, section6_, sectionTitle, sectionTitle_, sectionTitle6, sectionTitle6_, titleanchor, anchor, anchor_, bold, bold_, comment, content, definedTerm, definedTerm, definedTerm_, definition, definition, definition_, definitionList, definitionList, definitionList_, encodeURL, escapeHTML, figure, figure, figure_, figureCaption, figureCaption, figureCaption_, figureGraphics, figureGraphics, flush, getCellCount, getCellJustif, getTextBuffer, horizontalRule, horizontalRule, isHeadFlag, isVerbatimFlag, 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, resetState, resetTextBuffer, section, section_, section1, section1_, section2, section2_, section3, section3_, section4, section4_, section5, section5_, sectionTitle, sectionTitle_, sectionTitle1, sectionTitle1_, sectionTitle2, sectionTitle2_, sectionTitle3, sectionTitle3_, sectionTitle4, sectionTitle4_, sectionTitle5, sectionTitle5_, setCellCount, setCellJustif, setHeadFlag, setVerbatimFlag, table, table, table_, tableCaption, tableCaption, tableCaption_, tableCell, tableCell, tableCell, tableCell_, tableHeaderCell, tableHeaderCell, tableHeaderCell, tableHeaderCell_, tableRow, tableRow_, tableRows_, text, text, unknown, verbatim, verbatimContent, write, writeEndTag, writeStartTagprotected XdocSink(java.io.Writer writer)
writer - not null writer to write the result. Should be an UTF-8 Writer.
You could use newXmlWriter methods from WriterFactory.protected XdocSink(java.io.Writer writer,
java.lang.String encoding)
writer - not null writer to write the result.encoding - the encoding used, that should be written to the generated HTML content
if not null.protected XdocSink(java.io.Writer writer,
java.lang.String encoding,
java.lang.String languageId)
writer - not null writer to write the result.encoding - the encoding used, that should be written to the generated HTML content
if not null.languageId - language identifier for the root element as defined by
IETF BCP 47, Tags for the Identification of Languages;
in addition, the empty string may be specified.protected void init()
init in class org.apache.maven.doxia.sink.impl.XhtmlBaseSinkpublic void head()
head in class org.apache.maven.doxia.sink.impl.SinkAdapterhead(org.apache.maven.doxia.sink.SinkEventAttributes)public void head(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
head in class org.apache.maven.doxia.sink.impl.SinkAdapterXdocMarkup.DOCUMENT_TAG,
XdocMarkup.PROPERTIES_TAGpublic void head_()
head_ in class org.apache.maven.doxia.sink.impl.SinkAdapterXdocMarkup.DOCUMENT_TAG,
XdocMarkup.PROPERTIES_TAGpublic void title()
title in class org.apache.maven.doxia.sink.impl.SinkAdapterHTML.Tag.TITLEpublic void title_()
title_ in class org.apache.maven.doxia.sink.impl.SinkAdapterHTML.Tag.TITLEpublic void author_()
author_ in class org.apache.maven.doxia.sink.impl.SinkAdapterXdocMarkup.AUTHOR_TAGpublic void date_()
date_ in class org.apache.maven.doxia.sink.impl.SinkAdapterXdocMarkup.DATE_TAGpublic void body()
body in class org.apache.maven.doxia.sink.impl.SinkAdapterbody(org.apache.maven.doxia.sink.SinkEventAttributes)public void body(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
body in class org.apache.maven.doxia.sink.impl.SinkAdapterHTML.Tag.BODYpublic void body_()
body_ in class org.apache.maven.doxia.sink.impl.SinkAdapterHTML.Tag.BODY,
XdocMarkup.DOCUMENT_TAGprotected void onSection(int depth,
org.apache.maven.doxia.sink.SinkEventAttributes attributes)
onSection in class org.apache.maven.doxia.sink.impl.XhtmlBaseSinkXdocMarkup.SECTION_TAG,
XdocMarkup.SUBSECTION_TAGprotected void onSection_(int depth)
onSection_ in class org.apache.maven.doxia.sink.impl.XhtmlBaseSinkXdocMarkup.SECTION_TAG,
XdocMarkup.SUBSECTION_TAGprotected void onSectionTitle(int depth,
org.apache.maven.doxia.sink.SinkEventAttributes attributes)
onSectionTitle in class org.apache.maven.doxia.sink.impl.XhtmlBaseSinkHTML.Tag.H4,
HTML.Tag.H5,
HTML.Tag.H6protected void onSectionTitle_(int depth)
onSectionTitle_ in class org.apache.maven.doxia.sink.impl.XhtmlBaseSinkHTML.Tag.H4,
HTML.Tag.H5,
HTML.Tag.H6public void verbatim(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
verbatim in class org.apache.maven.doxia.sink.impl.XhtmlBaseSinkXdocMarkup.SOURCE_TAG,
HTML.Tag.PREpublic void verbatim_()
verbatim_ in class org.apache.maven.doxia.sink.impl.XhtmlBaseSinkXdocMarkup.SOURCE_TAG,
HTML.Tag.PREpublic void tableRows(int[] justification,
boolean grid)
center.
tableRows in class org.apache.maven.doxia.sink.impl.XhtmlBaseSinkHTML.Tag.TABLEpublic void tableRow()
top.
tableRow in class org.apache.maven.doxia.sink.impl.XhtmlBaseSinkHTML.Tag.TRpublic void close()
close in class org.apache.maven.doxia.sink.impl.XhtmlBaseSinkpublic void link(java.lang.String name,
java.lang.String target)
name - the link name.target - the link target, may be null.protected void markup(java.lang.String text)
text - The text to write.