public abstract class TableOutputGeneratorImpl extends java.lang.Object implements TableOutputGenerator
| Constructor and Description |
|---|
TableOutputGeneratorImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addGroupRow(int[] subtotalIndices,
java.lang.Object[] subtotals,
int[] subtotalGroupFieldIndices,
java.lang.Object[] subtotalGroupFieldValues,
int rowSize,
Column.CellFormatter[] cellFormatters)
In case a report is exported using subtotals, this method is called whenever
a group is finished and an aggregation row needs to be added.
|
void |
initialize(java.io.OutputStream os,
TableDefinition td,
boolean withSubtotals,
TableReport report,
TableReport originalReport,
Column.CellFormatter[] cellFormatters,
ParameterSet parameters,
User user,
ReportExecutionConfig... configs)
Initializes the generator before the first data point is provided.
|
boolean |
isCatchAll()
Returns true if this generator should be used if the format is not
recognized.
|
void |
preInitialize()
If something needs to be done before the
#initialize(OutputStream, TableDefinition, boolean, TableReport, TableReport, CellFormatter[], ParameterSet, User, ReportExecutionConfig...)
method is called, e.g. |
boolean |
supportsStreaming()
Return true if the output generator is able to stream data.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddField, close, getTableObject, nextRowgetFormatInfo, getFormatspublic void preInitialize()
TableOutputGenerator#initialize(OutputStream, TableDefinition, boolean, TableReport, TableReport, CellFormatter[], ParameterSet, User, ReportExecutionConfig...)
method is called, e.g. something that has to be initialized before the
TableDefinition is created, it can be done here.preInitialize in interface TableOutputGeneratorpublic void initialize(java.io.OutputStream os,
TableDefinition td,
boolean withSubtotals,
TableReport report,
TableReport originalReport,
Column.CellFormatter[] cellFormatters,
ParameterSet parameters,
User user,
ReportExecutionConfig... configs)
throws java.io.IOException
TableOutputGeneratorinitialize in interface TableOutputGeneratoros - The output stream to be used. If no output stream is provided (the
object is null), then the report should be generated in memory.java.io.IOExceptionpublic boolean isCatchAll()
ReportOutputGeneratorisCatchAll in interface ReportOutputGeneratorpublic void addGroupRow(int[] subtotalIndices,
java.lang.Object[] subtotals,
int[] subtotalGroupFieldIndices,
java.lang.Object[] subtotalGroupFieldValues,
int rowSize,
Column.CellFormatter[] cellFormatters)
throws java.io.IOException
TableOutputGeneratoraddGroupRow in interface TableOutputGeneratorjava.io.IOExceptionpublic boolean supportsStreaming()
TableOutputGeneratorsupportsStreaming in interface TableOutputGenerator