org.drools.decisiontable.parser.xls
Class ExcelParser

java.lang.Object
  extended by org.drools.decisiontable.parser.xls.ExcelParser
All Implemented Interfaces:
DecisionTableParser

public class ExcelParser
extends java.lang.Object
implements DecisionTableParser


Field Summary
static java.lang.String DATE_TARGET_FORMAT
           
static java.lang.String DEFAULT_RULESHEET_NAME
           
 
Constructor Summary
ExcelParser(java.util.Map sheetListners)
          Define a map of sheet name to listner handlers.
ExcelParser(SheetListener listener)
           
 
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
 

Field Detail

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
Constructor Detail

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)
Method Detail

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