public abstract class AbstractSink extends Object implements Sink, Markup
SinkEventAttributes
).
This implementation just delegates the former to the latter with argument SinkEventAttributes
being null
.JUSTIFY_CENTER, JUSTIFY_LEFT, JUSTIFY_RIGHT, NUMBERING_DECIMAL, NUMBERING_LOWER_ALPHA, NUMBERING_LOWER_ROMAN, NUMBERING_UPPER_ALPHA, NUMBERING_UPPER_ROMAN, SECTION_LEVEL_1, SECTION_LEVEL_2, SECTION_LEVEL_3, SECTION_LEVEL_4, SECTION_LEVEL_5, SECTION_LEVEL_6
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, STAR
Constructor and Description |
---|
AbstractSink() |
Modifier and Type | Method and Description |
---|---|
void |
address()
Starts an address element.
|
void |
anchor(String name)
Starts an element which defines an anchor.
|
void |
article()
Starts an article within a document.
|
void |
author()
Starts an author element.
|
void |
blockquote()
Starts a blockquote element.
|
void |
body()
Starts the body of a document.
|
void |
content()
Start the main content section between the header and the
footer within the sections and/or body.
|
void |
data(String value)
Starts a data element which groups together other elements representing microformats.
|
void |
date()
Starts the date element.
|
void |
definedTerm()
Starts a definition term element within a definition list.
|
void |
definition()
Starts a definition element within a definition list.
|
void |
definitionList()
Starts a definition list element.
|
void |
definitionListItem()
Starts a list item element within a definition list.
|
void |
division()
Starts a division element grouping together other elements.
|
void |
figure()
Starts a basic image embedding element.
|
void |
figureCaption()
Starts a caption of an image element.
|
void |
figureGraphics(String name)
Adds a graphic element.
|
void |
footer()
Start a new footer within the section or body.
|
void |
head()
Starts the head element.
|
void |
header()
Start a new header within the section or body.
|
void |
horizontalRule()
Adding a separator of sections from a text to each other.
|
protected void |
init()
This is called in
head() or in Sink.close() , and can be used
to set the sink into a clear state so it can be re-used. |
void |
inline()
Starts an inline element.
|
void |
lineBreak()
Adds a line break.
|
void |
lineBreakOpportunity()
Adds a line break opportunity.
|
void |
link(String name)
Starts an element which defines a link.
|
void |
list()
Starts an unordered list element.
|
void |
listItem()
Starts a list item element within an unordered list.
|
void |
navigation()
Starts a navigation section within a document.
|
void |
numberedList(int numbering)
Starts an ordered list element.
|
void |
numberedListItem()
Starts a list item element within an ordered list.
|
void |
paragraph()
Starts an element which represents a paragraph.
|
void |
section1_()
Ends a first heading element.
|
void |
section1()
Starts a first heading element which contains the topic of the section.
|
void |
section2_()
Ends a second heading element.
|
void |
section2()
Starts a second heading element which contains the topic of the section.
|
void |
section3_()
Ends a third heading element.
|
void |
section3()
Starts a third heading element which contains the topic of the section.
|
void |
section4_()
Ends a 4th heading element.
|
void |
section4()
Starts a 4th heading element which contains the topic of the section.
|
void |
section5_()
Ends a 5th heading element.
|
void |
section5()
Starts a 5th heading element which contains the topic of the section.
|
void |
section6_()
Ends a 6th heading element.
|
void |
section6()
Starts a 6th heading element which contains the topic of the section.
|
void |
sectionTitle_()
Ends a title heading element.
|
void |
sectionTitle()
Starts a title heading element.
|
void |
sectionTitle1_()
Ends a first title heading element.
|
void |
sectionTitle1()
Starts a first title heading element.
|
void |
sectionTitle2_()
Ends a second title heading element.
|
void |
sectionTitle2()
Starts a second title heading element.
|
void |
sectionTitle3_()
Ends a third title heading element.
|
void |
sectionTitle3()
Starts a third title heading element.
|
void |
sectionTitle4_()
Ends a 4th title heading element.
|
void |
sectionTitle4()
Starts a 4th title heading element.
|
void |
sectionTitle5_()
Ends a 5th title heading element.
|
void |
sectionTitle5()
Starts a 5th title heading element.
|
void |
sectionTitle6_()
Ends a 6th title heading element.
|
void |
sectionTitle6()
Starts a 6th title heading element.
|
void |
sidebar()
Starts a sidebar section within a document.
|
void |
table()
Starts a table element for marking up tabular information in a document.
|
void |
tableCaption()
Starts a caption element of a table.
|
void |
tableCell()
Starts a cell element which defines a cell that contains data.
|
void |
tableHeaderCell()
Starts a cell element which defines a cell that contains header information.
|
void |
tableRow()
Starts a row element which acts as a container for a row of table cells.
|
void |
tableRows()
Starts an element that contains rows of table data.
|
void |
text(String text)
Adding a text.
|
void |
time(String datetime)
Starts a time element which groups together other elements representing a time.
|
void |
title()
Starts the title element.
|
protected static String |
unifyEOLs(String text)
Parses the given String and replaces all occurrences of
'\n', '\r' and '\r\n' with the system EOL.
|
void |
verbatim()
Starts a verbatim block, ie a block where whitespace has semantic relevance.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
address_, address, anchor_, anchor, article_, article, author_, author, blockquote_, blockquote, body_, body, bold_, bold, close, comment, content_, content, data_, data, date_, date, definedTerm_, definedTerm, definition_, definition, definitionList_, definitionList, definitionListItem_, definitionListItem, division_, division, figure_, figure, figureCaption_, figureCaption, figureGraphics, flush, footer_, footer, head_, head, header_, header, horizontalRule, inline_, inline, italic_, italic, lineBreak, lineBreakOpportunity, link_, link, list_, list, listItem_, listItem, monospaced_, monospaced, navigation_, navigation, nonBreakingSpace, numberedList_, numberedList, numberedListItem_, numberedListItem, pageBreak, paragraph_, paragraph, rawText, section_, section, sectionTitle_, sectionTitle, sidebar_, sidebar, table_, table, tableCaption_, tableCaption, tableCell_, tableCell, tableHeaderCell_, tableHeaderCell, tableRow_, tableRow, tableRows_, tableRows, text, time_, time, title_, title, unknown, verbatim_, verbatim
public AbstractSink()
public final void head()
Sink
Sink.head(SinkEventAttributes)
with first argument being null
.head
in interface Sink
Sink.head(SinkEventAttributes)
public final void title()
Sink
Sink.title(SinkEventAttributes)
with first argument being null
.title
in interface Sink
Sink.title(SinkEventAttributes)
public final void author()
Sink
Sink.author(SinkEventAttributes)
with first argument being null
.author
in interface Sink
Sink.author(SinkEventAttributes)
public final void date()
Sink
Sink.date(SinkEventAttributes)
with first argument being null
.date
in interface Sink
Sink.date(SinkEventAttributes)
public final void body()
Sink
Sink.body(SinkEventAttributes)
with first argument being null
.body
in interface Sink
Sink.body(SinkEventAttributes)
public final void article()
Sink
Sink.article(SinkEventAttributes)
with first argument being null
.article
in interface Sink
Sink.article(SinkEventAttributes)
public final void navigation()
Sink
Sink.navigation(SinkEventAttributes)
with first argument being null
.navigation
in interface Sink
Sink.navigation(SinkEventAttributes)
public final void sidebar()
Sink
Sink.sidebar(SinkEventAttributes)
with first argument being null
.sidebar
in interface Sink
Sink.sidebar(SinkEventAttributes)
public final void sectionTitle()
Sink
Sink.sectionTitle(int, SinkEventAttributes)
with first argument being 0
and second argument being null
.sectionTitle
in interface Sink
public final void section1()
Sink
Sink.section(int, SinkEventAttributes)
with first argument being 1
and second argument being null
.section1
in interface Sink
Sink.section(int,SinkEventAttributes)
public final void sectionTitle_()
Sink
Sink.sectionTitle_(int)
with argument being 0
.sectionTitle_
in interface Sink
public final void section1_()
Sink
Sink.section_(int)
with argument being 1
.public final void sectionTitle1()
Sink
Sink.section1()
element.
Shortcut for Sink.sectionTitle(int, SinkEventAttributes)
with first argument being 1
and second argument being null
.
sectionTitle1
in interface Sink
Sink.sectionTitle(int,SinkEventAttributes)
public final void sectionTitle1_()
Sink
Sink.sectionTitle_(int)
with argument being 1
.sectionTitle1_
in interface Sink
public final void section2()
Sink
Sink.section1()
element.
Shortcut for Sink.section(int, SinkEventAttributes)
with first argument being 2
and second argument being null
.
section2
in interface Sink
Sink.section(int,SinkEventAttributes)
public final void section2_()
Sink
Sink.section_(int)
with argument being 2
.public final void sectionTitle2()
Sink
Sink.section2()
element.
Shortcut for Sink.sectionTitle(int, SinkEventAttributes)
with first argument being 2
and second argument being null
.
sectionTitle2
in interface Sink
Sink.sectionTitle(int,SinkEventAttributes)
public final void sectionTitle2_()
Sink
Sink.sectionTitle_(int)
with argument being 2
.sectionTitle2_
in interface Sink
public final void section3()
Sink
Sink.section2()
element.
Shortcut for Sink.section(int, SinkEventAttributes)
with first argument being 3
and second argument being null
.
section3
in interface Sink
Sink.section(int,SinkEventAttributes)
public final void section3_()
Sink
Sink.section_(int)
with argument being 3
.public final void sectionTitle3()
Sink
Sink.section3()
element.
Shortcut for Sink.sectionTitle(int, SinkEventAttributes)
with first argument being 3
and second argument being null
.
sectionTitle3
in interface Sink
Sink.sectionTitle(int,SinkEventAttributes)
public final void sectionTitle3_()
Sink
Sink.sectionTitle_(int)
with argument being 3
.sectionTitle3_
in interface Sink
public final void section4()
Sink
Sink.section3()
element.
Shortcut for Sink.section(int, SinkEventAttributes)
with first argument being 4
and second argument being null
.
section4
in interface Sink
Sink.section(int,SinkEventAttributes)
public final void section4_()
Sink
Sink.section_(int)
with argument being 4
.public final void sectionTitle4()
Sink
Sink.section4()
element.
Shortcut for Sink.sectionTitle(int, SinkEventAttributes)
with first argument being 4
and second argument being null
.
sectionTitle4
in interface Sink
Sink.sectionTitle(int,SinkEventAttributes)
public final void sectionTitle4_()
Sink
Sink.sectionTitle_(int)
with argument being 4
.sectionTitle4_
in interface Sink
public final void section5()
Sink
Sink.section5()
element.
Shortcut for Sink.section(int, SinkEventAttributes)
with first argument being 5
and second argument being null
.
section5
in interface Sink
Sink.section(int,SinkEventAttributes)
public final void section5_()
Sink
Sink.section_(int)
with argument being 5
.public final void sectionTitle5()
Sink
Sink.section5()
element.
Shortcut for Sink.sectionTitle(int, SinkEventAttributes)
with first argument being 5
and second argument being null
.
sectionTitle5
in interface Sink
Sink.sectionTitle(int,SinkEventAttributes)
public final void sectionTitle5_()
Sink
Sink.sectionTitle_(int)
with argument being 5
.sectionTitle5_
in interface Sink
public final void section6()
Sink
Sink.section6()
element.
Shortcut for Sink.section(int, SinkEventAttributes)
with first argument being 6
and second argument being null
.
section6
in interface Sink
Sink.section(int,SinkEventAttributes)
public final void section6_()
Sink
Sink.section_(int)
with argument being 6
.public final void sectionTitle6()
Sink
Sink.section5()
element.
Shortcut for Sink.sectionTitle(int, SinkEventAttributes)
with first argument being 6
and second argument being null
.
sectionTitle6
in interface Sink
Sink.sectionTitle(int,SinkEventAttributes)
public final void sectionTitle6_()
Sink
Sink.sectionTitle_(int)
with argument being 6
.sectionTitle6_
in interface Sink
public final void header()
Sink
Sink.header(SinkEventAttributes)
with argument being null
.public final void content()
Sink
Sink.content(SinkEventAttributes)
with argument being null
.public final void footer()
Sink
Sink.footer(SinkEventAttributes)
with argument being null
.public final void list()
Sink
Sink.list(SinkEventAttributes)
with argument being null
.list
in interface Sink
Sink.list(SinkEventAttributes)
public final void listItem()
Sink
Sink.listItem(SinkEventAttributes)
with argument being null
.listItem
in interface Sink
Sink.listItem(SinkEventAttributes)
public final void numberedList(int numbering)
Sink
Sink.numberedList(int, SinkEventAttributes)
with first argument being numbering
and second argument being null
.numberedList
in interface Sink
numbering
- the numbering style.Sink.numberedList(int,SinkEventAttributes)
public final void numberedListItem()
Sink
Sink.numberedListItem(SinkEventAttributes)
with argument being null
.numberedListItem
in interface Sink
Sink.numberedListItem(SinkEventAttributes)
public final void definitionList()
Sink
Sink.definitionList(SinkEventAttributes)
with argument being null
.definitionList
in interface Sink
Sink.definitionList(SinkEventAttributes)
public final void definitionListItem()
Sink
Sink.definitionListItem(SinkEventAttributes)
with argument being null
.definitionListItem
in interface Sink
Sink.definitionListItem(SinkEventAttributes)
public final void definition()
Sink
Sink.definition(SinkEventAttributes)
with argument being null
.definition
in interface Sink
Sink.definition(SinkEventAttributes)
public final void definedTerm()
Sink
Sink.definedTerm(SinkEventAttributes)
with argument being null
.definedTerm
in interface Sink
Sink.definedTerm(SinkEventAttributes)
public final void figure()
Sink
Sink.figure(SinkEventAttributes)
with argument being null
.figure
in interface Sink
Sink.figure(SinkEventAttributes)
public final void figureCaption()
Sink
Sink.figureCaption(SinkEventAttributes)
with argument being null
.figureCaption
in interface Sink
Sink.figureCaption(SinkEventAttributes)
public final void figureGraphics(String name)
Sink
Sink.figureGraphics(String, SinkEventAttributes)
with first argument being src
and second argument being null
.figureGraphics
in interface Sink
name
- the sourcepublic final void table()
Sink
Sink.table(SinkEventAttributes)
with argument being null
.table
in interface Sink
Sink.table(SinkEventAttributes)
public final void tableRows()
Sink
Sink.tableRows(int[], boolean)
with first argument being null
and second being false
.tableRows
in interface Sink
Sink.tableRows(int[], boolean)
public final void tableRow()
Sink
Sink.tableRow(SinkEventAttributes)
with argument being null
.tableRow
in interface Sink
Sink.tableRow(SinkEventAttributes)
public final void tableCell()
Sink
Sink.tableCell(SinkEventAttributes)
with argument being null
.tableCell
in interface Sink
Sink.tableCell(SinkEventAttributes)
public final void tableHeaderCell()
Sink
Sink.tableHeaderCell(SinkEventAttributes)
with argument being null
.tableHeaderCell
in interface Sink
Sink.tableHeaderCell(SinkEventAttributes)
public final void tableCaption()
Sink
Sink.tableCaption(SinkEventAttributes)
with argument being null
.tableCaption
in interface Sink
Sink.tableCaption(SinkEventAttributes)
public final void paragraph()
Sink
Sink.paragraph(SinkEventAttributes)
with argument being null
.paragraph
in interface Sink
Sink.paragraph(SinkEventAttributes)
public final void data(String value)
Sink
Sink.data(String, SinkEventAttributes)
with first argument being {code value} and second argument being null
.data
in interface Sink
value
- a String
object.Sink.data(String, SinkEventAttributes)
public final void time(String datetime)
Sink
Sink.time(String, SinkEventAttributes)
with first argument being {code datetime} and second argument being null
.time
in interface Sink
Sink.time(String, SinkEventAttributes)
public final void address()
Sink
Sink.address(SinkEventAttributes)
with argument being null
.address
in interface Sink
Sink.address(SinkEventAttributes)
public final void blockquote()
Sink
Sink.blockquote(SinkEventAttributes)
with argument being null
.blockquote
in interface Sink
Sink.blockquote(SinkEventAttributes)
public final void division()
Sink
Sink.division(SinkEventAttributes)
with argument being null
.division
in interface Sink
Sink.division(SinkEventAttributes)
public final void verbatim()
Sink
Sink.verbatim(SinkEventAttributes)
with argument being null
.verbatim
in interface Sink
Sink.verbatim(SinkEventAttributes)
public final void horizontalRule()
Sink
Sink.horizontalRule(SinkEventAttributes)
with argument being null
.horizontalRule
in interface Sink
Sink.horizontalRule(SinkEventAttributes)
public final void anchor(String name)
Sink
Sink.anchor(String, SinkEventAttributes)
with first argument being name
and second argument being null
.anchor
in interface Sink
name
- the name of the anchor.Sink.anchor(String,SinkEventAttributes)
public final void link(String name)
Sink
Sink.link(String, SinkEventAttributes)
with first argument being name
and second argument being null
.link
in interface Sink
name
- the name of the link.Sink.link(String,SinkEventAttributes)
public final void inline()
Sink
Sink.inline(SinkEventAttributes)
with argument being null
.inline
in interface Sink
Sink.inline(SinkEventAttributes)
public final void lineBreak()
Sink
Sink.lineBreak(SinkEventAttributes)
with argument being null
.lineBreak
in interface Sink
Sink.lineBreak(SinkEventAttributes)
public final void lineBreakOpportunity()
Sink
Sink.lineBreakOpportunity(SinkEventAttributes)
with argument being null
.lineBreakOpportunity
in interface Sink
Sink.lineBreak(SinkEventAttributes)
public final void text(String text)
Sink
Sink.text(String, SinkEventAttributes)
with first argument being text
and second argument being null
.text
in interface Sink
text
- The text to write.Sink.text(String,SinkEventAttributes)
protected static String unifyEOLs(String text)
text
- the text to scan.
May be null in which case null is returned.protected void init()
head()
or in Sink.close()
, and can be used
to set the sink into a clear state so it can be re-used.Copyright © 2005–2024 The Apache Software Foundation. All rights reserved.