Klasse CachedOutput
java.lang.Object
com.inet.report.cache.store.CachedOutput
- Alle implementierten Schnittstellen:
DocumentOutput, Comparable<CachedOutput>
Implementation of DocumentOutput that saves in the report cache.
- Seit:
- 16.2
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCachedOutput(ReportCacheKey key, ReportGenerator engine) Create a new instance. -
Methodenübersicht
Modifikator und TypMethodeBeschreibungvoidaddFontData(byte[] fontData) Add the data for an embedded font.voidaddPage(byte[] page) Add a page/chunk.voidclear()Reset this output in the initial state.intGet the Engine/EngineBundle that produce the data for this output.intGet the count of added fonts.byte[]getFontData(int idx) Get the font data from the given index.byte[]Get the data of the group tree.getKey()Get the key of this DocumentOutput.intGet the current count of pages.byte[]getPageData(int idx) Get the binary data of a page/chunk.booleanCheck if the rendering of the report ran into a page limit.voidsetErrorData(byte[] error) Set error data.voidsetFontData(byte[] fontData, int idx) Override the font data with a new version.voidsetGroupTree(byte[] data) Set the group tree.voidsetPageData(byte[] page, int idx) Override/patched an existing page/chunk.voidSet that a PageLimitException exception occur.voidSet that a total page is used in the report.voidThe rendering was stopped.
-
Konstruktordetails
-
CachedOutput
Create a new instance.- Parameter:
key- the report keyengine- the related Engine- Seit:
- 16.2
-
-
Methodendetails
-
getPageCount
public int getPageCount()Get the current count of pages.- Angegeben von:
getPageCountin SchnittstelleDocumentOutput- Gibt zurück:
- the page count
-
clear
public void clear()Reset this output in the initial state. So getPageCount() == 0 and getFontCount() == 0.- Angegeben von:
clearin SchnittstelleDocumentOutput
-
getPageData
Get the binary data of a page/chunk.- Angegeben von:
getPageDatain SchnittstelleDocumentOutput- Parameter:
idx- the index, starts with 1- Gibt zurück:
- the data, never null
- Löst aus:
ArrayIndexOutOfBoundsException- if index is out of range
-
getGroupTree
public byte[] getGroupTree()Get the data of the group tree.- Angegeben von:
getGroupTreein SchnittstelleDocumentOutput- Gibt zurück:
- Can be null, if not set.
-
addPage
Add a page/chunk. IncrementDocumentOutput.getPageCount()- Angegeben von:
addPagein SchnittstelleDocumentOutput- Parameter:
page- the binary data, never null- Löst aus:
IllegalStateException- if this output is finish or stopped.
-
setPageData
Override/patched an existing page/chunk.- Angegeben von:
setPageDatain SchnittstelleDocumentOutput- Parameter:
page- die binary data, never nullidx- the index, starts with 1- Löst aus:
IllegalStateException- if this output is finish or stopped.
-
setGroupTree
Set the group tree. After this call this output is finish and any try to change this object should throw an exception. This call does not changeDocumentOutput.getPageCount().- Angegeben von:
setGroupTreein SchnittstelleDocumentOutput- Parameter:
data- the binary data, never null, but can be an empty array- Löst aus:
IllegalStateException- if this output is finish or stopped.
-
setErrorData
Set error data. After this call this output is finish and any try to change this object should throw an exception.- Angegeben von:
setErrorDatain SchnittstelleDocumentOutput- Parameter:
error- serialized Exception- Löst aus:
IllegalStateException- if this output is finish or stopped.
-
stop
The rendering was stopped. This is called from Engine.stop(). After this call any try to change this object should throw an exception.- Angegeben von:
stopin SchnittstelleDocumentOutput- Parameter:
cause- an optional message
-
addFontData
Add the data for an embedded font. IncrementDocumentOutput.getFontCount(). This method is only used from the Java/C# output format.- Angegeben von:
addFontDatain SchnittstelleDocumentOutput- Parameter:
fontData- binary data in the current protocol format.- Löst aus:
IllegalStateException- if this output is finish or stopped.
-
setFontData
Override the font data with a new version.- Angegeben von:
setFontDatain SchnittstelleDocumentOutput- Parameter:
fontData- binary data in the current protocol format.idx- the index, starts with 0- Löst aus:
IllegalStateException- if this output is finish or stopped.
-
getFontData
Get the font data from the given index.- Angegeben von:
getFontDatain SchnittstelleDocumentOutput- Parameter:
idx- the index, starts with 0- Gibt zurück:
- the font data, never null
- Löst aus:
ArrayIndexOutOfBoundsException- if index is out of range
-
getFontCount
public int getFontCount()Get the count of added fonts.- Angegeben von:
getFontCountin SchnittstelleDocumentOutput- Gibt zurück:
- the font count
-
setPageLimitExceeded
public void setPageLimitExceeded()Set that a PageLimitException exception occur.- Angegeben von:
setPageLimitExceededin SchnittstelleDocumentOutput
-
isPageLimitExceeded
public boolean isPageLimitExceeded()Check if the rendering of the report ran into a page limit. This means does not all possible pages exist.- Angegeben von:
isPageLimitExceededin SchnittstelleDocumentOutput- Gibt zurück:
- true, if PageLimitException was occur
-
setUsingTotalPage
public void setUsingTotalPage()Set that a total page is used in the report.- Angegeben von:
setUsingTotalPagein SchnittstelleDocumentOutput
-
getKey
-
getEngine
Get the Engine/EngineBundle that produce the data for this output.- Gibt zurück:
- the engine
- Seit:
- 16.2
-
compareTo
- Angegeben von:
compareToin SchnittstelleComparable<CachedOutput>
-