public class XLSStreamOutputGenerator extends TableOutputGeneratorImpl
| Constructor and Description |
|---|
XLSStreamOutputGenerator(XLSOutputGenerator basicXlsGenerator,
StupidOracleService sos,
LicenseService licenseService,
ConfigService configService,
<any> filterServiceProvider,
<any> exporterHelperProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
addField(java.lang.Object field,
Column.CellFormatter cellFormatter)
Adds a new cell to the output.
|
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 |
close()
Informs the generator that the data is completely processed.
|
void |
createNewTab(TableDefinition table,
TableReport report,
Column.CellFormatter[] cellFormatters) |
CompiledReport |
getFormatInfo()
Returns an empty
CompiledReport object to specify the type of report
that is generated by this generator. |
java.lang.String[] |
getFormats() |
CompiledReport |
getTableObject()
Is called upon completion to get the final report object.
|
void |
initialize(java.io.OutputStream os,
TableDefinition table,
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 |
nextRow()
Informs the generator that the current data row is finished and a new row is
about to begin
|
preInitialize, supportsStreamingpublic XLSStreamOutputGenerator(XLSOutputGenerator basicXlsGenerator, StupidOracleService sos, LicenseService licenseService, ConfigService configService, <any> filterServiceProvider, <any> exporterHelperProvider)
public java.lang.String[] getFormats()
public void initialize(java.io.OutputStream os,
TableDefinition table,
boolean withSubtotals,
TableReport report,
TableReport originalReport,
Column.CellFormatter[] cellFormatters,
ParameterSet parameters,
User user,
ReportExecutionConfig... configs)
throws java.io.IOException
TableOutputGeneratorinitialize in interface TableOutputGeneratorinitialize in class TableOutputGeneratorImplos - 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 void createNewTab(TableDefinition table, TableReport report, Column.CellFormatter[] cellFormatters) throws java.io.IOException
java.io.IOExceptionpublic void addField(java.lang.Object field,
Column.CellFormatter cellFormatter)
throws java.io.IOException
TableOutputGeneratorjava.io.IOExceptionpublic 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 TableOutputGeneratoraddGroupRow in class TableOutputGeneratorImpljava.io.IOExceptionpublic void close()
throws java.io.IOException
TableOutputGeneratorjava.io.IOExceptionpublic void nextRow()
throws java.io.IOException
TableOutputGeneratorjava.io.IOExceptionpublic CompiledReport getTableObject()
TableOutputGenerator#initialize(OutputStream, TableDefinition, boolean, TableReport, TableReport, CellFormatter[], ParameterSet, User, ReportExecutionConfig...)
the CompiledReport object should not contain actual report data.public CompiledReport getFormatInfo()
ReportOutputGeneratorCompiledReport object to specify the type of report
that is generated by this generator.public boolean isCatchAll()
ReportOutputGeneratorisCatchAll in interface ReportOutputGeneratorisCatchAll in class TableOutputGeneratorImpl