org.drools.io
Class RuleBaseLoader

java.lang.Object
  extended byorg.drools.io.RuleBaseLoader

public final class RuleBaseLoader
extends java.lang.Object

Convenience methods for loading a RuleBase.

The RuleBaseLoader provides convenience methods for loading RuleBase s from streams. RuleBaseLoader is thread-safe and as such may be used to build multiple RuleBase s simultaneously by multiple threads.

See Also:
RuleSet, RuleBase, RuleSetReader, RuleBaseBuilder
 

Method Summary
static RuleBase loadFromInputStream(java.io.InputStream in)
          Loads a RuleBase from an InputStream using the default ConflictResolver This is a convenience method and calls public static RuleBase loadFromInputStream(InputStream in, ConflictResolver resolver) passing the DefaultConflictResolver
static RuleBase loadFromInputStream(java.io.InputStream[] ins)
          Loads a RuleBase from an InputStream using the default ConflictResolver This is a convenience method and calls public static RuleBase loadFromInputStream(InputStream[] ins, ConflictResolver resolver) passing the DefaultConflictResolver
static RuleBase loadFromInputStream(java.io.InputStream[] ins, ConflictResolver resolver)
          Loads a RuleBase from an InputStream using the default ConflictResolver
static RuleBase loadFromInputStream(java.io.InputStream in, ConflictResolver resolver)
          Loads a RuleBase from an InputStream using the default ConflictResolver
static RuleBase loadFromReader(java.io.Reader in)
          Loads a RuleBase from a Reader using the default ConflictResolver This is a convenience method and calls public static RuleBase loadFromReader(Reader in, ConflictResolver resolver) passing the DefaultConflictResolver
static RuleBase loadFromReader(java.io.Reader[] ins)
          Loads a RuleBase from a Reader using the default ConflictResolver This is a convenience method and calls public static RuleBase loadFromReader(Reader[] ins, ConflictResolver resolver) passing the DefaultConflictResolver
static RuleBase loadFromReader(java.io.Reader[] ins, ConflictResolver resolver)
          Loads a RuleBase from a Reader using the given ConflictResolver
static RuleBase loadFromReader(java.io.Reader in, ConflictResolver resolver)
          Loads a RuleBase from a Reader using the given ConflictResolver
static RuleBase loadFromUrl(java.net.URL url)
          Loads a RuleBase from a URL using the default ConflictResolver This is a convenience method and calls public static RuleBase loadFromUrl(URL url, ConflictResolver resolver) passing the DefaultConflictResolver
static RuleBase loadFromUrl(java.net.URL[] urls)
          Loads a RuleBase using several URLs, using the DefaultConflictResolver.
static RuleBase loadFromUrl(java.net.URL[] urls, ConflictResolver resolver)
          Loads a RuleBase from several URLS, merging them and using the specified ConflictResolver
static RuleBase loadFromUrl(java.net.URL url, ConflictResolver resolver)
          Loads a RuleBase from a URL using the given ConflictResolver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loadFromUrl

public static RuleBase loadFromUrl(java.net.URL url)
                            throws org.xml.sax.SAXException,
                                   java.io.IOException,
                                   RuleSetIntegrationException,
                                   RuleIntegrationException
Loads a RuleBase from a URL using the default ConflictResolver This is a convenience method and calls public static RuleBase loadFromUrl(URL url, ConflictResolver resolver) passing the DefaultConflictResolver

Throws:
org.xml.sax.SAXException
java.io.IOException
RuleSetIntegrationException
RuleIntegrationException
Parameters:
url -
Returns:
RuleBase

loadFromUrl

public static RuleBase loadFromUrl(java.net.URL url,
                                   ConflictResolver resolver)
                            throws org.xml.sax.SAXException,
                                   java.io.IOException,
                                   RuleSetIntegrationException,
                                   RuleIntegrationException
Loads a RuleBase from a URL using the given ConflictResolver

Throws:
org.xml.sax.SAXException
java.io.IOException
RuleSetIntegrationException
RuleIntegrationException
Parameters:
url -
resolver -
Returns:
RuleBase

loadFromUrl

public static RuleBase loadFromUrl(java.net.URL[] urls)
                            throws org.xml.sax.SAXException,
                                   java.io.IOException,
                                   RuleSetIntegrationException,
                                   RuleIntegrationException
Loads a RuleBase using several URLs, using the DefaultConflictResolver. This is a convenience method and calls public static RuleBase loadFromUrl(URL[] url, ConflictResolver resolver) passing the DefaultConflictResolver

Throws:
org.xml.sax.SAXException
java.io.IOException
RuleSetIntegrationException
RuleIntegrationException
Parameters:
urls -
Returns:
RuleBase

loadFromUrl

public static RuleBase loadFromUrl(java.net.URL[] urls,
                                   ConflictResolver resolver)
                            throws org.xml.sax.SAXException,
                                   java.io.IOException,
                                   RuleSetIntegrationException,
                                   RuleIntegrationException
Loads a RuleBase from several URLS, merging them and using the specified ConflictResolver

Throws:
org.xml.sax.SAXException
java.io.IOException
RuleSetIntegrationException
RuleIntegrationException
Parameters:
urls -
resolver -
Returns:
RuleBase

loadFromInputStream

public static RuleBase loadFromInputStream(java.io.InputStream in)
                                    throws org.xml.sax.SAXException,
                                           java.io.IOException,
                                           RuleSetIntegrationException,
                                           RuleIntegrationException
Loads a RuleBase from an InputStream using the default ConflictResolver This is a convenience method and calls public static RuleBase loadFromInputStream(InputStream in, ConflictResolver resolver) passing the DefaultConflictResolver

Throws:
org.xml.sax.SAXException
java.io.IOException
RuleSetIntegrationException
RuleIntegrationException
Parameters:
in -
Returns:
ruleBase

loadFromInputStream

public static RuleBase loadFromInputStream(java.io.InputStream in,
                                           ConflictResolver resolver)
                                    throws org.xml.sax.SAXException,
                                           java.io.IOException,
                                           RuleSetIntegrationException,
                                           RuleIntegrationException
Loads a RuleBase from an InputStream using the default ConflictResolver

Throws:
org.xml.sax.SAXException
java.io.IOException
RuleSetIntegrationException
RuleIntegrationException
Parameters:
in -
resolver -
Returns:
ruleBase

loadFromInputStream

public static RuleBase loadFromInputStream(java.io.InputStream[] ins)
                                    throws org.xml.sax.SAXException,
                                           java.io.IOException,
                                           RuleSetIntegrationException,
                                           RuleIntegrationException
Loads a RuleBase from an InputStream using the default ConflictResolver This is a convenience method and calls public static RuleBase loadFromInputStream(InputStream[] ins, ConflictResolver resolver) passing the DefaultConflictResolver

Throws:
org.xml.sax.SAXException
java.io.IOException
RuleSetIntegrationException
RuleIntegrationException
Parameters:
ins -
Returns:
ruleBase

loadFromInputStream

public static RuleBase loadFromInputStream(java.io.InputStream[] ins,
                                           ConflictResolver resolver)
                                    throws org.xml.sax.SAXException,
                                           java.io.IOException,
                                           RuleSetIntegrationException,
                                           RuleIntegrationException
Loads a RuleBase from an InputStream using the default ConflictResolver

Throws:
org.xml.sax.SAXException
java.io.IOException
RuleSetIntegrationException
RuleIntegrationException
Parameters:
ins -
resolver -
Returns:
ruleBase

loadFromReader

public static RuleBase loadFromReader(java.io.Reader in)
                               throws org.xml.sax.SAXException,
                                      java.io.IOException,
                                      RuleSetIntegrationException,
                                      RuleIntegrationException
Loads a RuleBase from a Reader using the default ConflictResolver This is a convenience method and calls public static RuleBase loadFromReader(Reader in, ConflictResolver resolver) passing the DefaultConflictResolver

Throws:
org.xml.sax.SAXException
java.io.IOException
RuleSetIntegrationException
RuleIntegrationException
Parameters:
in -
Returns:
ruleBase

loadFromReader

public static RuleBase loadFromReader(java.io.Reader in,
                                      ConflictResolver resolver)
                               throws org.xml.sax.SAXException,
                                      java.io.IOException,
                                      RuleSetIntegrationException,
                                      RuleIntegrationException
Loads a RuleBase from a Reader using the given ConflictResolver

Throws:
org.xml.sax.SAXException
java.io.IOException
RuleSetIntegrationException
RuleIntegrationException
Parameters:
in -
resolver -
Returns:
ruleBase

loadFromReader

public static RuleBase loadFromReader(java.io.Reader[] ins)
                               throws org.xml.sax.SAXException,
                                      java.io.IOException,
                                      RuleSetIntegrationException,
                                      RuleIntegrationException
Loads a RuleBase from a Reader using the default ConflictResolver This is a convenience method and calls public static RuleBase loadFromReader(Reader[] ins, ConflictResolver resolver) passing the DefaultConflictResolver

Throws:
org.xml.sax.SAXException
java.io.IOException
RuleSetIntegrationException
RuleIntegrationException
Parameters:
ins -
Returns:
ruleBase

loadFromReader

public static RuleBase loadFromReader(java.io.Reader[] ins,
                                      ConflictResolver resolver)
                               throws org.xml.sax.SAXException,
                                      java.io.IOException,
                                      RuleSetIntegrationException,
                                      RuleIntegrationException
Loads a RuleBase from a Reader using the given ConflictResolver

Throws:
org.xml.sax.SAXException
java.io.IOException
RuleSetIntegrationException
RuleIntegrationException
Parameters:
ins -
resolver -
Returns:
ruleBase