public class DataProviderCompiler extends Object
Constructor and Description |
---|
DataProviderCompiler() |
Modifier and Type | Method and Description |
---|---|
protected void |
closeStream(InputStream stream) |
String |
compile(DataProvider dataProvider,
InputStream templateStream)
Generates DRL from a data provider for the spreadsheet data and templates.
|
String |
compile(DataProvider dataProvider,
InputStream templateStream,
boolean replaceOptionals)
Generates DRL from a data provider for the spreadsheet data and templates.
|
String |
compile(DataProvider dataProvider,
String template)
Generates DRL from a data provider for the spreadsheet data and templates.
|
String |
compile(DataProvider dataProvider,
String template,
boolean replaceOptionals)
Generates DRL from a data provider for the spreadsheet data and templates.
|
String |
compile(DataProvider dataProvider,
TemplateDataListener listener)
Generates DRL from a data provider for the spreadsheet data and templates.
|
String |
compile(DataProvider dataProvider,
TemplateDataListener listener,
boolean replaceOptionals)
Generates DRL from a data provider for the spreadsheet data and templates.
|
void |
newCell(List<DataListener> listeners,
int row,
int column,
String value,
int mergedColStart) |
public String compile(DataProvider dataProvider, String template)
dataProvider
- the data provider for the spreadsheet datatemplate
- the string containing the template resource namepublic String compile(DataProvider dataProvider, InputStream templateStream)
dataProvider
- the data provider for the spreadsheet datatemplateStream
- the InputStream for reading the templatespublic String compile(DataProvider dataProvider, TemplateDataListener listener)
dataProvider
- the data provider for the spreadsheet datalistener
- a template data listenerpublic String compile(DataProvider dataProvider, String template, boolean replaceOptionals)
dataProvider
- the data provider for the spreadsheet datatemplate
- the string containing the template resource namepublic String compile(DataProvider dataProvider, InputStream templateStream, boolean replaceOptionals)
dataProvider
- the data provider for the spreadsheet datatemplateStream
- the InputStream for reading the templatespublic String compile(DataProvider dataProvider, TemplateDataListener listener, boolean replaceOptionals)
dataProvider
- the data provider for the spreadsheet datalistener
- a template data listenerpublic void newCell(List<DataListener> listeners, int row, int column, String value, int mergedColStart)
protected void closeStream(InputStream stream)
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.