|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.digester3.plugins.RuleLoader
org.apache.commons.digester3.plugins.strategies.LoaderFromStream
public class LoaderFromStream
A rule-finding algorithm which loads an xmlplugins-format file.
Note that the "include" feature of xmlrules is not supported.
| Constructor Summary | |
|---|---|
LoaderFromStream(InputStream s)
The contents of the input stream are loaded into memory, and cached for later use. |
|
| Method Summary | |
|---|---|
void |
addRules(Digester d,
String path)
Configures the digester with custom rules for some plugged-in class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 memory
Exception - if any error occurs while reading the input stream| Method Detail |
|---|
public 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 RuleLoaderd - The gigester has to be configuredpath - The path where rule has to be bound
PluginException - if any error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||