public class XdocSink extends org.apache.maven.doxia.sink.impl.XhtmlBaseSink implements XdocMarkup
tableAttributes, tableRowsAUTHOR_TAG, DATE_TAG, DOCUMENT_TAG, MACRO_TAG, PROPERTIES_TAG, SECTION_TAG, SOURCE_TAG, SUBSECTION_TAG, XDOC_NAMESPACE, XDOC_SYSTEM_IDA, 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, VARBANG, CDATA, DOCTYPE_START, ENTITY_START, XML_NAMESPACECOLON, 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_6| Modifier | Constructor and 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 and Description |
|---|---|
void |
author_() |
void |
body_() |
void |
body() |
void |
body(org.apache.maven.doxia.sink.SinkEventAttributes attributes) |
void |
close() |
void |
date_() |
void |
head_() |
void |
head() |
void |
head(org.apache.maven.doxia.sink.SinkEventAttributes attributes) |
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)
Ends a section.
|
protected void |
onSection(int depth,
org.apache.maven.doxia.sink.SinkEventAttributes attributes)
Starts a section.
|
protected void |
onSectionTitle_(int depth)
Ends a section title.
|
protected void |
onSectionTitle(int depth,
org.apache.maven.doxia.sink.SinkEventAttributes attributes)
Starts 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_() |
void |
verbatim(org.apache.maven.doxia.sink.SinkEventAttributes attributes) |
anchor_, 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, writeStartTaggetNameSpace, setInsertNewline, setNameSpace, writeEOL, writeSimpleTag, writeSimpleTag, writeStartTag, writeStartTagauthor, author, date, date, definitionListItem_, definitionListItem, definitionListItem, section6_, section6, sectionTitle_, sectionTitle, sectionTitle6_, sectionTitle6, titleprotected 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 interface org.apache.maven.doxia.sink.Sinkhead 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 interface org.apache.maven.doxia.sink.Sinkhead in class org.apache.maven.doxia.sink.impl.SinkAdapterXdocMarkup.DOCUMENT_TAG,
XdocMarkup.PROPERTIES_TAGpublic void head_()
head_ in interface org.apache.maven.doxia.sink.Sinkhead_ in class org.apache.maven.doxia.sink.impl.SinkAdapterXdocMarkup.DOCUMENT_TAG,
XdocMarkup.PROPERTIES_TAGpublic void title()
title in interface org.apache.maven.doxia.sink.Sinktitle in class org.apache.maven.doxia.sink.impl.SinkAdapterHTML.Tag.TITLEpublic void title_()
title_ in interface org.apache.maven.doxia.sink.Sinktitle_ in class org.apache.maven.doxia.sink.impl.SinkAdapterHTML.Tag.TITLEpublic void author_()
author_ in interface org.apache.maven.doxia.sink.Sinkauthor_ in class org.apache.maven.doxia.sink.impl.SinkAdapterXdocMarkup.AUTHOR_TAGpublic void date_()
date_ in interface org.apache.maven.doxia.sink.Sinkdate_ in class org.apache.maven.doxia.sink.impl.SinkAdapterXdocMarkup.DATE_TAGpublic void body()
body in interface org.apache.maven.doxia.sink.Sinkbody 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 interface org.apache.maven.doxia.sink.Sinkbody in class org.apache.maven.doxia.sink.impl.SinkAdapterHTML.Tag.BODYpublic void body_()
body_ in interface org.apache.maven.doxia.sink.Sinkbody_ 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 interface org.apache.maven.doxia.sink.Sinkverbatim in class org.apache.maven.doxia.sink.impl.XhtmlBaseSinkXdocMarkup.SOURCE_TAG,
HTML.Tag.PREpublic void verbatim_()
verbatim_ in interface org.apache.maven.doxia.sink.Sinkverbatim_ in class org.apache.maven.doxia.sink.impl.XhtmlBaseSinkXdocMarkup.SOURCE_TAG,
HTML.Tag.PREpublic void tableRows(int[] justification,
boolean grid)
center.
tableRows in interface org.apache.maven.doxia.sink.SinktableRows in class org.apache.maven.doxia.sink.impl.XhtmlBaseSinkHTML.Tag.TABLEpublic void tableRow()
top.
tableRow in interface org.apache.maven.doxia.sink.SinktableRow in class org.apache.maven.doxia.sink.impl.XhtmlBaseSinkHTML.Tag.TRpublic void close()
close in interface org.apache.maven.doxia.sink.Sinkclose 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.