public class LoaderFromStream extends RuleLoader
Note that the "include" feature of xmlrules is not supported.
Constructor and Description |
---|
LoaderFromStream(InputStream s)
The contents of the input stream are loaded into memory, and cached for later use.
|
public LoaderFromStream(InputStream s) throws Exception
The caller is responsible for closing the input stream after this method has returned.
s
- the input stream has to be loaded into memoryException
- if any error occurs while reading the input streampublic void addRules(Digester d, String path) throws PluginException
This method is invoked when the start of an xml tag is encountered which maps to a PluginCreateRule. Any rules added here are removed from the digester when the end of that xml tag is encountered.
addRules
in class RuleLoader
d
- The gigester has to be configuredpath
- The path where rule has to be boundPluginException
- if any error occursCopyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.