public void AddPackageFromXml(System.IO.Stream xmlStream) { _javaPackageBuilder.addPackageFromXml(DroolsDotnetUtil.getJavaStringReaderFromSystemStream(xmlStream)); }
public void AddPackageFromDrl(string fileName, System.IO.Stream drlStream) { _javaPackageBuilder.addPackageFromDrl(fileName, DroolsDotnetUtil.getJavaStringReaderFromSystemStream(drlStream)); }
public void AddPackageFromDrl(System.IO.Stream drlStream, System.IO.Stream dslStream) { _javaPackageBuilder.addPackageFromDrl(DroolsDotnetUtil.getJavaStringReaderFromSystemStream(drlStream), DroolsDotnetUtil.getJavaStringReaderFromSystemStream(dslStream)); }
/** * Create a new RuleBase from the drl and dsl source. * Uses the current default engine type. */ public RuleBase loadFromStream(Stream drl, Stream dsl) { return(new RuleBase(_javaRuleBaseLoader.loadFromReader( DroolsDotnetUtil.getJavaStringReaderFromSystemStream(drl), DroolsDotnetUtil.getJavaStringReaderFromSystemStream(dsl)))); }