BufferingSinkProxyFactory
instead which buffers on the (higher) Sink API level
which usually is less memory intense than buffering the output stream which is done by this class.
Also it doesn't require dynamically creating new sinks leveraging a SinkFactory
.@Deprecated public class RandomAccessSink extends SinkWrapper
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.BufferingSinkProxyFactory
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 |
---|
RandomAccessSink(SinkFactory sinkFactory,
File outputDirectory,
String outputName)
Deprecated.
Constructor for RandomAccessSink.
|
RandomAccessSink(SinkFactory sinkFactory,
File outputDirectory,
String outputName,
String encoding)
Deprecated.
Constructor for RandomAccessSink.
|
RandomAccessSink(SinkFactory sinkFactory,
OutputStream stream)
Deprecated.
Constructor for RandomAccessSink.
|
RandomAccessSink(SinkFactory sinkFactory,
OutputStream stream,
String encoding)
Deprecated.
Constructor for RandomAccessSink.
|
Modifier and Type | Method and Description |
---|---|
Sink |
addSinkHook()
Deprecated.
By calling this method a sink reference is added at the current position.
|
void |
close()
Deprecated.
Close all sinks
|
void |
flush()
Deprecated.
Flush all sinks
|
address_, address, anchor_, anchor, article_, article, author_, author, blockquote_, blockquote, body_, body, bold_, bold, comment, content_, content, data_, data, date_, date, definedTerm_, definedTerm, definition_, definition, definitionList_, definitionList, definitionListItem_, definitionListItem, division_, division, figure_, figure, figureCaption_, figureCaption, figureGraphics, footer_, footer, getDocumentLocator, getWrappedSink, 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, setDocumentLocator, setWrappedSink, sidebar_, sidebar, table_, table, tableCaption_, tableCaption, tableCell_, tableCell, tableHeaderCell_, tableHeaderCell, tableRow_, tableRow, tableRows_, tableRows, text, time_, time, title_, title, unknown, verbatim_, verbatim
address, anchor, article, author, blockquote, body, content, data, date, definedTerm, definition, definitionList, definitionListItem, division, figure, figureCaption, figureGraphics, footer, formatLocation, getLocationLogPrefix, head, header, horizontalRule, init, inline, lineBreak, lineBreakOpportunity, link, list, listItem, navigation, numberedList, numberedListItem, paragraph, section1_, section1, section2_, section2, section3_, section3, section4_, section4, section5_, section5, section6_, section6, sectionTitle_, sectionTitle, sectionTitle1_, sectionTitle1, sectionTitle2_, sectionTitle2, sectionTitle3_, sectionTitle3, sectionTitle4_, sectionTitle4, sectionTitle5_, sectionTitle5, sectionTitle6_, sectionTitle6, sidebar, table, tableCaption, tableCell, tableHeaderCell, tableRow, tableRows, text, time, title, unifyEOLs, verbatim
public RandomAccessSink(SinkFactory sinkFactory, OutputStream stream) throws IOException
Constructor for RandomAccessSink.
sinkFactory
- a SinkFactory
object.stream
- a OutputStream
object.IOException
- if any.public RandomAccessSink(SinkFactory sinkFactory, OutputStream stream, String encoding) throws IOException
Constructor for RandomAccessSink.
sinkFactory
- a SinkFactory
object.stream
- a OutputStream
object.encoding
- a String
object.IOException
- if any.public RandomAccessSink(SinkFactory sinkFactory, File outputDirectory, String outputName) throws IOException
Constructor for RandomAccessSink.
sinkFactory
- a SinkFactory
object.outputDirectory
- a File
object.outputName
- a String
object.IOException
- if any.public RandomAccessSink(SinkFactory sinkFactory, File outputDirectory, String outputName, String encoding) throws IOException
Constructor for RandomAccessSink.
sinkFactory
- a SinkFactory
object.outputDirectory
- a File
object.outputName
- a String
object.encoding
- a String
object.IOException
- if any.public Sink addSinkHook()
public void close()
close
in interface AutoCloseable
close
in interface Sink
close
in class SinkWrapper
public void flush()
flush
in interface Sink
flush
in class SinkWrapper
Copyright © 2005–2024 The Apache Software Foundation. All rights reserved.