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
IOExceptionpublic RandomAccessSink(SinkFactory sinkFactory, OutputStream stream, String encoding) throws IOException
IOExceptionpublic RandomAccessSink(SinkFactory sinkFactory, File outputDirectory, String outputName) throws IOException
IOExceptionpublic RandomAccessSink(SinkFactory sinkFactory, File outputDirectory, String outputName, String encoding) throws IOException
IOExceptionpublic 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 Sinkpublic void definedTerm(SinkEventAttributes attributes)
definedTerm in interface Sinkpublic void definedTerm_()
definedTerm_ in interface Sinkpublic void definition()
definition in interface Sinkpublic void definition(SinkEventAttributes attributes)
definition in interface Sinkpublic void definitionList()
definitionList in interface Sinkpublic void definitionList(SinkEventAttributes attributes)
definitionList in interface Sinkpublic void definitionListItem()
definitionListItem in interface Sinkpublic void definitionListItem(SinkEventAttributes attributes)
definitionListItem in interface Sinkpublic void definitionListItem_()
definitionListItem_ in interface Sinkpublic void definitionList_()
definitionList_ in interface Sinkpublic void definition_()
definition_ in interface Sinkpublic void figure(SinkEventAttributes attributes)
public void figureCaption()
figureCaption in interface Sinkpublic void figureCaption(SinkEventAttributes attributes)
figureCaption in interface Sinkpublic void figureCaption_()
figureCaption_ in interface Sinkpublic void figureGraphics(String name)
figureGraphics in interface Sinkpublic void figureGraphics(String src, SinkEventAttributes attributes)
figureGraphics in interface Sinkpublic void head(SinkEventAttributes attributes)
public void horizontalRule()
horizontalRule in interface Sinkpublic void horizontalRule(SinkEventAttributes attributes)
horizontalRule in interface Sinkpublic 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 Sinkpublic void monospaced_()
monospaced_ in interface Sinkpublic void nonBreakingSpace()
nonBreakingSpace in interface Sinkpublic void numberedList(int numbering)
numberedList in interface Sinkpublic void numberedList(int numbering, SinkEventAttributes attributes)
numberedList in interface Sinkpublic void numberedListItem()
numberedListItem in interface Sinkpublic void numberedListItem(SinkEventAttributes attributes)
numberedListItem in interface Sinkpublic void numberedListItem_()
numberedListItem_ in interface Sinkpublic void numberedList_()
numberedList_ in interface Sinkpublic void paragraph(SinkEventAttributes attributes)
public void paragraph_()
paragraph_ in interface Sinkpublic void section(int level, SinkEventAttributes attributes)
public void sectionTitle()
sectionTitle in interface Sinkpublic void sectionTitle(int level, SinkEventAttributes attributes)
sectionTitle in interface Sinkpublic void sectionTitle1()
sectionTitle1 in interface Sinkpublic void sectionTitle1_()
sectionTitle1_ in interface Sinkpublic void sectionTitle2()
sectionTitle2 in interface Sinkpublic void sectionTitle2_()
sectionTitle2_ in interface Sinkpublic void sectionTitle3()
sectionTitle3 in interface Sinkpublic void sectionTitle3_()
sectionTitle3_ in interface Sinkpublic void sectionTitle4()
sectionTitle4 in interface Sinkpublic void sectionTitle4_()
sectionTitle4_ in interface Sinkpublic void sectionTitle5()
sectionTitle5 in interface Sinkpublic void sectionTitle5_()
sectionTitle5_ in interface Sinkpublic void sectionTitle6()
sectionTitle6 in interface Sinkpublic void sectionTitle6_()
sectionTitle6_ in interface Sinkpublic void sectionTitle_()
sectionTitle_ in interface Sinkpublic void sectionTitle_(int level)
sectionTitle_ in interface Sinkpublic void table(SinkEventAttributes attributes)
public void tableCaption()
tableCaption in interface Sinkpublic void tableCaption(SinkEventAttributes attributes)
tableCaption in interface Sinkpublic void tableCaption_()
tableCaption_ in interface Sinkpublic void tableCell(SinkEventAttributes attributes)
public void tableCell_()
tableCell_ in interface Sinkpublic void tableHeaderCell()
tableHeaderCell in interface Sinkpublic void tableHeaderCell(String width)
tableHeaderCell in interface Sinkpublic void tableHeaderCell(SinkEventAttributes attributes)
tableHeaderCell in interface Sinkpublic void tableHeaderCell_()
tableHeaderCell_ in interface Sinkpublic void tableRow(SinkEventAttributes attributes)
public void tableRows(int[] justification, boolean grid)
public void tableRows_()
tableRows_ in interface Sinkpublic 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 LogEnabledCopyright © 2005–2016 The Apache Software Foundation. All rights reserved.