Class CsvParser

  • All Implemented Interfaces:
    DecisionTableParser

    public class CsvParser
    extends java.lang.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.
    • Constructor Summary

      Constructors 
      Constructor Description
      CsvParser​(java.util.List<org.drools.template.parser.DataListener> listeners, CsvLineParser lineParser)  
      CsvParser​(org.drools.template.parser.DataListener listener, CsvLineParser lineParser)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void parseFile​(java.io.File file)
      Parse a file, store the resulting rulebase.
      void parseFile​(java.io.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​(org.drools.template.parser.DataListener listener,
                         CsvLineParser lineParser)
      • CsvParser

        public CsvParser​(java.util.List<org.drools.template.parser.DataListener> listeners,
                         CsvLineParser lineParser)