public class ExternalSpreadsheetCompiler extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger |
Constructor and Description |
---|
ExternalSpreadsheetCompiler() |
Modifier and Type | Method and Description |
---|---|
String |
compile(InputStream xlsStream,
InputStream templateStream,
InputType type,
int startRow,
int startCol) |
String |
compile(InputStream xlsStream,
InputStream templateStream,
int startRow,
int startCol) |
void |
compile(InputStream xlsStream,
InputType type,
List<org.drools.template.parser.DataListener> listeners) |
String |
compile(InputStream xlsStream,
InputType type,
org.drools.template.parser.TemplateDataListener listener)
Generates DRL from the input stream containing the spreadsheet.
|
void |
compile(InputStream xlsStream,
Map<String,List<org.drools.template.parser.DataListener>> listeners) |
String |
compile(InputStream xlsStream,
String worksheetName,
InputStream templateStream,
int startRow,
int startCol) |
String |
compile(InputStream xlsStream,
String worksheetName,
org.drools.template.parser.TemplateDataListener listener) |
void |
compile(String xls,
InputType type,
List<org.drools.template.parser.DataListener> listeners) |
void |
compile(String xls,
Map<String,List<org.drools.template.parser.DataListener>> listeners) |
String |
compile(String xls,
String template,
InputType type,
int startRow,
int startCol) |
String |
compile(String xls,
String template,
int startRow,
int startCol) |
String |
compile(String xls,
String worksheetName,
String template,
int startRow,
int startCol) |
public String compile(String xls, String template, InputType type, int startRow, int startCol)
public String compile(String xls, String worksheetName, String template, int startRow, int startCol)
public String compile(InputStream xlsStream, InputStream templateStream, int startRow, int startCol)
public String compile(InputStream xlsStream, InputStream templateStream, InputType type, int startRow, int startCol)
public String compile(InputStream xlsStream, String worksheetName, InputStream templateStream, int startRow, int startCol)
public void compile(String xls, InputType type, List<org.drools.template.parser.DataListener> listeners)
public void compile(String xls, Map<String,List<org.drools.template.parser.DataListener>> listeners)
public void compile(InputStream xlsStream, InputType type, List<org.drools.template.parser.DataListener> listeners)
public void compile(InputStream xlsStream, Map<String,List<org.drools.template.parser.DataListener>> listeners)
public String compile(InputStream xlsStream, InputType type, org.drools.template.parser.TemplateDataListener listener)
xlsStream
- The stream to the spreadsheet. Uses the first worksheet found
for the decision tables, ignores others.type
- The type of the file - InputType.CSV or InputType.XLSlistener
- IOException
public String compile(InputStream xlsStream, String worksheetName, org.drools.template.parser.TemplateDataListener listener)
Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.