Class LoaderFromStream
java.lang.Object
org.apache.commons.digester.plugins.RuleLoader
org.apache.commons.digester.plugins.strategies.LoaderFromStream
A rule-finding algorithm which loads an xmlplugins-format file.
Note that the "include" feature of xmlrules is not supported.
- Since:
- 1.6
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add the rules previously loaded from the input stream into the specified digester.private void
load
(InputStream s) The contents of the input stream are loaded into memory, and cached for later use.
-
Field Details
-
input
private byte[] input
-
-
Constructor Details
-
LoaderFromStream
- Throws:
Exception
-
-
Method Details
-
load
The contents of the input stream are loaded into memory, and cached for later use.The caller is responsible for closing the input stream after this method has returned.
- Throws:
IOException
-
addRules
Add the rules previously loaded from the input stream into the specified digester.- Specified by:
addRules
in classRuleLoader
- Throws:
PluginException
-