public class RandomAccessSink extends Object implements Sink
Sink
with hooks.
A page can be prepared by first creating its structure and specifying the positions of these hooks.
After specifying the structure, the page can be filled with content from one or more models.
These hooks can prevent you to have to loop over the model multiple times to build the page as desired.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_6
Constructor and Description |
---|
RandomAccessSink(SinkFactory sinkFactory,
File outputDirectory,
String outputName) |
RandomAccessSink(SinkFactory sinkFactory,
File outputDirectory,
String outputName,
String encoding) |
RandomAccessSink(SinkFactory sinkFactory,
OutputStream stream) |
RandomAccessSink(SinkFactory sinkFactory,
OutputStream stream,
String encoding) |
public RandomAccessSink(SinkFactory sinkFactory, OutputStream stream) throws IOException
IOException
public RandomAccessSink(SinkFactory sinkFactory, OutputStream stream, String encoding) throws IOException
IOException
public RandomAccessSink(SinkFactory sinkFactory, File outputDirectory, String outputName) throws IOException
IOException
public RandomAccessSink(SinkFactory sinkFactory, File outputDirectory, String outputName, String encoding) throws IOException
IOException
public Sink addSinkHook()
public void anchor(String name, SinkEventAttributes attributes)
public void author(SinkEventAttributes attributes)
public void body(SinkEventAttributes attributes)
public void date(SinkEventAttributes attributes)
public void definedTerm()
definedTerm
in interface Sink
public void definedTerm(SinkEventAttributes attributes)
definedTerm
in interface Sink
public void definedTerm_()
definedTerm_
in interface Sink
public void definition()
definition
in interface Sink
public void definition(SinkEventAttributes attributes)
definition
in interface Sink
public void definitionList()
definitionList
in interface Sink
public void definitionList(SinkEventAttributes attributes)
definitionList
in interface Sink
public void definitionListItem()
definitionListItem
in interface Sink
public void definitionListItem(SinkEventAttributes attributes)
definitionListItem
in interface Sink
public void definitionListItem_()
definitionListItem_
in interface Sink
public void definitionList_()
definitionList_
in interface Sink
public void definition_()
definition_
in interface Sink
public void figure(SinkEventAttributes attributes)
public void figureCaption()
figureCaption
in interface Sink
public void figureCaption(SinkEventAttributes attributes)
figureCaption
in interface Sink
public void figureCaption_()
figureCaption_
in interface Sink
public void figureGraphics(String name)
figureGraphics
in interface Sink
public void figureGraphics(String src, SinkEventAttributes attributes)
figureGraphics
in interface Sink
public void head(SinkEventAttributes attributes)
public void horizontalRule()
horizontalRule
in interface Sink
public void horizontalRule(SinkEventAttributes attributes)
horizontalRule
in interface Sink
public void lineBreak(SinkEventAttributes attributes)
public void link(String name, SinkEventAttributes attributes)
public void list(SinkEventAttributes attributes)
public void listItem(SinkEventAttributes attributes)
public void monospaced()
monospaced
in interface Sink
public void monospaced_()
monospaced_
in interface Sink
public void nonBreakingSpace()
nonBreakingSpace
in interface Sink
public void numberedList(int numbering)
numberedList
in interface Sink
public void numberedList(int numbering, SinkEventAttributes attributes)
numberedList
in interface Sink
public void numberedListItem()
numberedListItem
in interface Sink
public void numberedListItem(SinkEventAttributes attributes)
numberedListItem
in interface Sink
public void numberedListItem_()
numberedListItem_
in interface Sink
public void numberedList_()
numberedList_
in interface Sink
public void paragraph(SinkEventAttributes attributes)
public void paragraph_()
paragraph_
in interface Sink
public void section(int level, SinkEventAttributes attributes)
public void sectionTitle()
sectionTitle
in interface Sink
public void sectionTitle(int level, SinkEventAttributes attributes)
sectionTitle
in interface Sink
public void sectionTitle1()
sectionTitle1
in interface Sink
public void sectionTitle1_()
sectionTitle1_
in interface Sink
public void sectionTitle2()
sectionTitle2
in interface Sink
public void sectionTitle2_()
sectionTitle2_
in interface Sink
public void sectionTitle3()
sectionTitle3
in interface Sink
public void sectionTitle3_()
sectionTitle3_
in interface Sink
public void sectionTitle4()
sectionTitle4
in interface Sink
public void sectionTitle4_()
sectionTitle4_
in interface Sink
public void sectionTitle5()
sectionTitle5
in interface Sink
public void sectionTitle5_()
sectionTitle5_
in interface Sink
public void sectionTitle6()
sectionTitle6
in interface Sink
public void sectionTitle6_()
sectionTitle6_
in interface Sink
public void sectionTitle_()
sectionTitle_
in interface Sink
public void sectionTitle_(int level)
sectionTitle_
in interface Sink
public void table(SinkEventAttributes attributes)
public void tableCaption()
tableCaption
in interface Sink
public void tableCaption(SinkEventAttributes attributes)
tableCaption
in interface Sink
public void tableCaption_()
tableCaption_
in interface Sink
public void tableCell(SinkEventAttributes attributes)
public void tableCell_()
tableCell_
in interface Sink
public void tableHeaderCell()
tableHeaderCell
in interface Sink
public void tableHeaderCell(String width)
tableHeaderCell
in interface Sink
public void tableHeaderCell(SinkEventAttributes attributes)
tableHeaderCell
in interface Sink
public void tableHeaderCell_()
tableHeaderCell_
in interface Sink
public void tableRow(SinkEventAttributes attributes)
public void tableRows(int[] justification, boolean grid)
public void tableRows_()
tableRows_
in interface Sink
public void text(String text, SinkEventAttributes attributes)
public void title(SinkEventAttributes attributes)
public void unknown(String name, Object[] requiredParams, SinkEventAttributes attributes)
public void verbatim(SinkEventAttributes attributes)
public void enableLogging(Log log)
enableLogging
in interface LogEnabled
Copyright © 2005–2016 The Apache Software Foundation. All rights reserved.