Rule Execution Server API

ilog.rules.engine
Class IlrUtil

java.lang.Object
  extended by ilog.rules.engine.IlrUtil

Deprecated. As of JRules 7.5, this class is deprecated and won't be replaced

public class IlrUtil
extends Object

This class contains some static methods to extract contents of streams into different forms convenient for JRules.


Method Summary
static IlrRulesetFactory getContentsAsFactory(InputStream in)
          Deprecated. Reads the contents of an InputStream as a serialized binary stream containing a compressed factory object.
static String getContentsAsText(Reader input)
          Deprecated. Reads the contents of a Reader as text and transforms it into a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getContentsAsText

public static String getContentsAsText(Reader input)
                                throws IOException
Deprecated. 

Reads the contents of a Reader as text and transforms it into a string. Each line is separated by a \n. This method can be used to turn a rule file into a string.

Throws:
IOException
Parameters:
input - The reader to read.
Returns:
a string separated by \n.

getContentsAsFactory

public static IlrRulesetFactory getContentsAsFactory(InputStream in)
                                              throws IOException,
                                                     ClassNotFoundException
Deprecated. 

Reads the contents of an InputStream as a serialized binary stream containing a compressed factory object. This file must be saved using the tool IlrFactoryGenerator.

Throws:
IOException
ClassNotFoundException
Parameters:
in - The input stream which contains a serialized factory object.
Returns:
an IlrRulesetFactory.

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013