public class IndexingSink extends SinkAdapter
JUSTIFY_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_6COLON, 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 |
|---|
IndexingSink(IndexEntry sectionEntry)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the writer or the stream, if needed.
|
String |
getTitle()
Getter for the field
title. |
protected void |
init()
This is called in
Sink.head() or in Sink.close(), and can be used
to set the sink into a clear state so it can be re-used. |
IndexEntry |
peek()
peek.
|
void |
pop()
Removes the IndexEntry at the top of this stack.
|
void |
push(IndexEntry entry)
Pushes an IndexEntry onto the top of this stack.
|
void |
pushNewEntry()
Creates and pushes a new IndexEntry onto the top of this stack.
|
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 |
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 |
text(String text)
Adding a text.
|
void |
title_()
Ends the title element.
|
void |
title()
Starts the title element.
|
address_, address, address, anchor_, anchor, anchor, article_, article, article, author_, author, author, blockquote_, blockquote, blockquote, body_, body, body, bold_, bold, comment, content_, content, content, data_, data, data, date_, date, date, definedTerm_, definedTerm, definedTerm, definition_, definition, definition, definitionList_, definitionList, definitionList, definitionListItem_, definitionListItem, definitionListItem, division_, division, division, figure_, figure, figure, figureCaption_, figureCaption, figureCaption, figureGraphics, figureGraphics, flush, footer_, footer, footer, head_, head, head, header_, header, header, horizontalRule, horizontalRule, inline_, inline, inline, italic_, italic, lineBreak, lineBreak, lineBreakOpportunity, lineBreakOpportunity, link_, link, link, list_, list, list, listItem_, listItem, listItem, monospaced_, monospaced, navigation_, navigation, navigation, nonBreakingSpace, numberedList_, numberedList, numberedList, numberedListItem_, numberedListItem, numberedListItem, pageBreak, paragraph_, paragraph, paragraph, rawText, section_, section, section6_, section6, sectionTitle_, sectionTitle_, sectionTitle, sectionTitle, sectionTitle6_, sectionTitle6, sidebar_, sidebar, sidebar, table_, table, table, tableCaption_, tableCaption, tableCaption, tableCell_, tableCell, tableCell, tableCell, tableHeaderCell_, tableHeaderCell, tableHeaderCell, tableHeaderCell, tableRow_, tableRow, tableRow, tableRows_, tableRows, text, time_, time, time, title, unknown, verbatim_, verbatim, verbatimenableLogging, getLog, unifyEOLspublic IndexingSink(IndexEntry sectionEntry)
sectionEntry - The first index entry.public String getTitle()
Getter for the field title.
public void title()
title in interface Sinktitle in class SinkAdapterSink.title(SinkEventAttributes)public void section1()
section1 in interface Sinksection1 in class SinkAdapterSink.section(int,SinkEventAttributes)public void sectionTitle1()
Sink.section1() element.sectionTitle1 in interface SinksectionTitle1 in class SinkAdapterSink.sectionTitle(int,SinkEventAttributes)public void title_()
title_ in interface Sinktitle_ in class SinkAdapterpublic void sectionTitle1_()
SinksectionTitle1_ in interface SinksectionTitle1_ in class SinkAdapterpublic void section1_()
section1_ in interface Sinksection1_ in class SinkAdapterpublic void section2()
Sink.section1() element.section2 in interface Sinksection2 in class SinkAdapterSink.section(int,SinkEventAttributes)public void sectionTitle2()
Sink.section2() element.sectionTitle2 in interface SinksectionTitle2 in class SinkAdapterSink.sectionTitle(int,SinkEventAttributes)public void sectionTitle2_()
SinksectionTitle2_ in interface SinksectionTitle2_ in class SinkAdapterpublic void section2_()
section2_ in interface Sinksection2_ in class SinkAdapterpublic void section3()
Sink.section2() element.section3 in interface Sinksection3 in class SinkAdapterSink.section(int,SinkEventAttributes)public void sectionTitle3()
Sink.section3() element.sectionTitle3 in interface SinksectionTitle3 in class SinkAdapterSink.sectionTitle(int,SinkEventAttributes)public void sectionTitle3_()
SinksectionTitle3_ in interface SinksectionTitle3_ in class SinkAdapterpublic void section3_()
section3_ in interface Sinksection3_ in class SinkAdapterpublic void section4()
Sink.section3() element.section4 in interface Sinksection4 in class SinkAdapterSink.section(int,SinkEventAttributes)public void sectionTitle4()
Sink.section4() element.sectionTitle4 in interface SinksectionTitle4 in class SinkAdapterSink.sectionTitle(int,SinkEventAttributes)public void sectionTitle4_()
SinksectionTitle4_ in interface SinksectionTitle4_ in class SinkAdapterpublic void section4_()
section4_ in interface Sinksection4_ in class SinkAdapterpublic void section5()
Sink.section4() element.section5 in interface Sinksection5 in class SinkAdapterSink.section(int,SinkEventAttributes)public void sectionTitle5()
Sink.section5() element.sectionTitle5 in interface SinksectionTitle5 in class SinkAdapterSink.sectionTitle(int,SinkEventAttributes)public void sectionTitle5_()
SinksectionTitle5_ in interface SinksectionTitle5_ in class SinkAdapterpublic void section5_()
section5_ in interface Sinksection5_ in class SinkAdapterpublic void text(String text)
text in interface Sinktext in class SinkAdaptertext - The text to write.Sink.text(String,SinkEventAttributes)public void pushNewEntry()
public void push(IndexEntry entry)
entry - to put.public void pop()
public IndexEntry peek()
peek.
public void close()
close in interface Sinkclose in class SinkAdapterprotected void init()
Sink.head() or in Sink.close(), and can be used
to set the sink into a clear state so it can be re-used.init in class AbstractSinkCopyright © 2005–2020 The Apache Software Foundation. All rights reserved.