public interface DocumentOutput
Modifier and Type | Method and Description |
---|---|
void |
addFontData(byte[] fontData)
Add the data for an embedded font.
|
void |
addPage(byte[] page)
Add a page/chunk.
|
void |
clear()
Reset this output in the initial state.
|
int |
getFontCount()
Get the count of added fonts.
|
byte[] |
getFontData(int idx)
Get the font data from the given index.
|
byte[] |
getGroupTree()
Get the data of the group tree.
|
int |
getPageCount()
Get the current count of pages.
|
byte[] |
getPageData(int idx)
Get the binary data of a page/chunk.
|
boolean |
isPageLimitExceeded()
Check if the rendering of the report ran into a page limit.
|
void |
setErrorData(byte[] error)
Set error data.
|
void |
setFontData(byte[] fontData,
int idx)
Override the font data with a new version.
|
void |
setGroupTree(byte[] data)
Set the group tree.
|
void |
setPageData(byte[] page,
int idx)
Override/patched an existing page/chunk.
|
void |
setPageLimitExceeded()
Set that a PageLimitException exception occur.
|
void |
setUsingTotalPage()
Set that a total page is used in the report.
|
void |
stop(java.lang.String cause)
The rendering was stopped.
|
int getPageCount()
void clear()
@Nonnull byte[] getPageData(int idx) throws java.lang.ArrayIndexOutOfBoundsException
idx
- the index, starts with 1java.lang.ArrayIndexOutOfBoundsException
- if index is out of rangebyte[] getGroupTree()
void addPage(@Nonnull byte[] page) throws java.lang.IllegalStateException
getPageCount()
page
- the binary data, never nulljava.lang.IllegalStateException
- if this output is finish or stopped.void setPageData(@Nonnull byte[] page, int idx) throws java.lang.IllegalStateException
page
- die binary data, never nullidx
- the index, starts with 1java.lang.IllegalStateException
- if this output is finish or stopped.void setGroupTree(@Nonnull byte[] data) throws java.lang.IllegalStateException
getPageCount()
.data
- the binary data, never null, but can be an empty arrayjava.lang.IllegalStateException
- if this output is finish or stopped.void setErrorData(byte[] error) throws java.lang.IllegalStateException
error
- serialized Exceptionjava.lang.IllegalStateException
- if this output is finish or stopped.void stop(@Nullable java.lang.String cause)
cause
- an optional messagevoid addFontData(byte[] fontData) throws java.lang.IllegalStateException
getFontCount()
. This method is only used from the Java/C#
output format.fontData
- binary data in the current protocol format.java.lang.IllegalStateException
- if this output is finish or stopped.void setFontData(byte[] fontData, int idx) throws java.lang.IllegalStateException
fontData
- binary data in the current protocol format.idx
- the index, starts with 0java.lang.IllegalStateException
- if this output is finish or stopped.@Nonnull byte[] getFontData(int idx) throws java.lang.ArrayIndexOutOfBoundsException
idx
- the index, starts with 0java.lang.ArrayIndexOutOfBoundsException
- if index is out of rangeint getFontCount()
void setPageLimitExceeded()
boolean isPageLimitExceeded()
void setUsingTotalPage()
Copyright © 1999-2020 by i-net software GmbH