org.drools.decisiontable.parser.xls
Class ExcelParser
java.lang.Object
org.drools.decisiontable.parser.xls.ExcelParser
- All Implemented Interfaces:
- DecisionTableParser
public class ExcelParser
- extends java.lang.Object
- implements DecisionTableParser
Method Summary |
void |
parseFile(java.io.InputStream inStream)
Scan an Excel file stream. |
void |
processRecord(Record record)
Implement the HSSFListener method
This receives the events for the Excel file format scan. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_RULESHEET_NAME
public static final java.lang.String DEFAULT_RULESHEET_NAME
- See Also:
- Constant Field Values
DATE_TARGET_FORMAT
public static final java.lang.String DATE_TARGET_FORMAT
- See Also:
- Constant Field Values
ExcelParser
public ExcelParser(java.util.Map sheetListners)
- Define a map of sheet name to listner handlers.
- Parameters:
sheetListners
- map of String to SheetListener
ExcelParser
public ExcelParser(SheetListener listener)
processRecord
public void processRecord(Record record)
- Implement the HSSFListener method
This receives the events for the Excel file format scan. A bunch of
document data OLE style and the sheet content.
parseFile
public void parseFile(java.io.InputStream inStream)
- Scan an Excel file stream.
- Specified by:
parseFile
in interface DecisionTableParser
- Parameters:
inStream
- the ms-excel data stream