org.drools.io
Class RuleSetLoader

java.lang.Object
  extended by org.drools.io.RuleSetLoader

public class RuleSetLoader
extends java.lang.Object


Constructor Summary
RuleSetLoader()
           
 
Method Summary
 void addFromInputSource(org.xml.sax.InputSource source)
          Loads a RuleBase from a Reader using the given ConflictResolver
 void addFromInputSource(org.xml.sax.InputSource[] sources)
          Loads a RuleBase from a Reader using the given ConflictResolver.
 void addFromInputStream(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
 void addFromInputStream(java.io.InputStream[] insr)
          Loads a RuleBase from an InputStream using the default ConflictResolver
 void addFromReader(java.io.Reader in)
          Loads a RuleBase from a Reader using the given ConflictResolver
 void addFromReader(java.io.Reader[] ins)
          Loads a RuleBase from a Reader using the given ConflictResolver
 void addFromUrl(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
 void addFromUrl(java.net.URL[] urls)
          Loads a RuleBase from several URLS, merging them and using the specified ConflictResolver
 java.util.Map getRuleSets()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleSetLoader

public RuleSetLoader()
Method Detail

getRuleSets

public java.util.Map getRuleSets()

addFromUrl

public void addFromUrl(java.net.URL url)
                throws org.xml.sax.SAXException,
                       java.io.IOException,
                       IntegrationException
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

Parameters:
url -
Throws:
org.xml.sax.SAXException
java.io.IOException
IntegrationException

addFromUrl

public void addFromUrl(java.net.URL[] urls)
                throws org.xml.sax.SAXException,
                       java.io.IOException,
                       IntegrationException
Loads a RuleBase from several URLS, merging them and using the specified ConflictResolver

Parameters:
urls -
resolver -
Throws:
org.xml.sax.SAXException
java.io.IOException
IntegrationException

addFromInputStream

public void addFromInputStream(java.io.InputStream in)
                        throws org.xml.sax.SAXException,
                               java.io.IOException,
                               IntegrationException
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

Parameters:
in -
Throws:
org.xml.sax.SAXException
java.io.IOException
IntegrationException

addFromInputStream

public void addFromInputStream(java.io.InputStream[] insr)
                        throws org.xml.sax.SAXException,
                               java.io.IOException,
                               IntegrationException
Loads a RuleBase from an InputStream using the default ConflictResolver

Parameters:
ins -
resolver -
Throws:
org.xml.sax.SAXException
java.io.IOException
IntegrationException

addFromReader

public void addFromReader(java.io.Reader in)
                   throws org.xml.sax.SAXException,
                          java.io.IOException,
                          IntegrationException
Loads a RuleBase from a Reader using the given ConflictResolver

Parameters:
in -
resolver -
Throws:
org.xml.sax.SAXException
java.io.IOException
IntegrationException

addFromReader

public void addFromReader(java.io.Reader[] ins)
                   throws org.xml.sax.SAXException,
                          java.io.IOException,
                          IntegrationException
Loads a RuleBase from a Reader using the given ConflictResolver

Parameters:
ins -
resolver -
Throws:
org.xml.sax.SAXException
java.io.IOException
IntegrationException

addFromInputSource

public void addFromInputSource(org.xml.sax.InputSource source)
                        throws org.xml.sax.SAXException,
                               java.io.IOException,
                               IntegrationException
Loads a RuleBase from a Reader using the given ConflictResolver

Parameters:
ins -
resolver -
Throws:
org.xml.sax.SAXException
java.io.IOException
IntegrationException

addFromInputSource

public void addFromInputSource(org.xml.sax.InputSource[] sources)
                        throws org.xml.sax.SAXException,
                               java.io.IOException,
                               IntegrationException
Loads a RuleBase from a Reader using the given ConflictResolver. All SAXExceptions with embedded exceptions are rethrown as nested Exceptions in IntegrationException

Parameters:
ins -
resolver -
Throws:
org.xml.sax.SAXException
java.io.IOException
IntegrationException