|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.rules.engine.IlrUtil
public class IlrUtil
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 |
---|
public static String getContentsAsText(Reader input) throws IOException
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.
IOException
input
- The reader to read.
\n
.public static IlrRulesetFactory getContentsAsFactory(InputStream in) throws IOException, ClassNotFoundException
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
.
IOException
ClassNotFoundException
in
- The input stream which contains a serialized factory object.
IlrRulesetFactory
.
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |