站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

CsvParser (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.decisiontable.parser.csv
Class CsvParser

java.lang.Object
  extended by org.drools.decisiontable.parser.csv.CsvParser
All Implemented Interfaces:
DecisionTableParser

public class CsvParser
extends Object
implements DecisionTableParser

Csv implementation. This implementation removes empty "cells" at the end of each line. Different CSV tools may or may not put heaps of empty cells in. Csv format is almost identical to XLS, with the one limitation: Merged cells are not supported. To allow constraints to span across cells for the one column, this is achieved by using "..." at the end of a cell value. If a cell value ends with "..." then it will be taken as spanned from the previous cell.

Author:
Michael Neale

Constructor Summary
CsvParser(List listeners, CsvLineParser lineParser)
           
CsvParser(SheetListener listener, CsvLineParser lineParser)
           
 
Method Summary
 void parseFile(InputStream inStream)
          Parse an input stream, store the resulting rulebase.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CsvParser

public CsvParser(SheetListener listener,
                 CsvLineParser lineParser)

CsvParser

public CsvParser(List listeners,
                 CsvLineParser lineParser)
Method Detail

parseFile

public void parseFile(InputStream inStream)
Description copied from interface: DecisionTableParser
Parse an input stream, store the resulting rulebase.

Specified by:
parseFile in interface DecisionTableParser


Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.