Class TableOutputGeneratorImpl
java.lang.Object
net.datenwerke.rs.base.service.reportengines.table.output.generator.TableOutputGeneratorImpl
- All Implemented Interfaces:
TableOutputGenerator,ReportOutputGenerator
- Direct Known Subclasses:
CompactJSONOutputGenerator,CSVOutputGenerator,DataCountOutputGenerator,HTMLOutputGenerator,JSONOutputGenerator,LegacyTablePDFOutputGenerator,RSTableOutputGenerator,RSTableSimpleBeanOutputGenerator,StreamTableOutputGenerator,TableReportInformationOutputGenerator,XLSStreamOutputGenerator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGroupRow(int[] subtotalIndices, Object[] subtotals, int[] subtotalGroupFieldIndices, 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.voidinitialize(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.booleanReturns true if this generator should be used if the format is not recognized.voidIf something needs to be done before theTableOutputGenerator.initialize(OutputStream, TableDefinition, boolean, TableReport, TableReport, CellFormatter[], ParameterSet, User, ReportExecutionConfig...)method is called, e.g.booleanReturn true if the output generator is able to stream data.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.datenwerke.rs.core.service.reportmanager.output.ReportOutputGenerator
getFormatInfo, getFormatsMethods inherited from interface net.datenwerke.rs.base.service.reportengines.table.output.generator.TableOutputGenerator
addField, close, getTableObject, nextRow
-
Constructor Details
-
TableOutputGeneratorImpl
public TableOutputGeneratorImpl()
-
-
Method Details
-
preInitialize
public void preInitialize()Description copied from interface:TableOutputGeneratorIf something needs to be done before theTableOutputGenerator.initialize(OutputStream, TableDefinition, boolean, TableReport, TableReport, CellFormatter[], ParameterSet, User, ReportExecutionConfig...)method is called, e.g. something that has to be initialized before theTableDefinitionis created, it can be done here.- Specified by:
preInitializein interfaceTableOutputGenerator
-
initialize
public void initialize(OutputStream os, TableDefinition td, boolean withSubtotals, TableReport report, TableReport originalReport, Column.CellFormatter[] cellFormatters, ParameterSet parameters, User user, ReportExecutionConfig... configs) throws IOException Description copied from interface:TableOutputGeneratorInitializes the generator before the first data point is provided.- Specified by:
initializein interfaceTableOutputGenerator- Parameters:
os- The output stream to be used. If no output stream is provided (the object is null), then the report should be generated in memory.- Throws:
IOException
-
isCatchAll
public boolean isCatchAll()Description copied from interface:ReportOutputGeneratorReturns true if this generator should be used if the format is not recognized.- Specified by:
isCatchAllin interfaceReportOutputGenerator
-
addGroupRow
public void addGroupRow(int[] subtotalIndices, Object[] subtotals, int[] subtotalGroupFieldIndices, Object[] subtotalGroupFieldValues, int rowSize, Column.CellFormatter[] cellFormatters) throws IOException Description copied from interface:TableOutputGeneratorIn case a report is exported using subtotals, this method is called whenever a group is finished and an aggregation row needs to be added.- Specified by:
addGroupRowin interfaceTableOutputGenerator- Throws:
IOException
-
supportsStreaming
public boolean supportsStreaming()Description copied from interface:TableOutputGeneratorReturn true if the output generator is able to stream data.- Specified by:
supportsStreamingin interfaceTableOutputGenerator
-