org.apache.commons.digester.plugins.strategies

Class LoaderFromStream

public class LoaderFromStream extends RuleLoader

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
byte[]input
FromXmlRuleSetruleSet
Constructor Summary
LoaderFromStream(InputStream s)
See {@link #load}.
Method Summary
voidaddRules(Digester d, String path)
Add the rules previously loaded from the input stream into the specified digester.
voidload(InputStream s)
The contents of the input stream are loaded into memory, and cached for later use.

Field Detail

input

private byte[] input

ruleSet

private FromXmlRuleSet ruleSet

Constructor Detail

LoaderFromStream

public LoaderFromStream(InputStream s)
See {@link #load}.

Method Detail

addRules

public void addRules(Digester d, String path)
Add the rules previously loaded from the input stream into the specified digester.

load

private void load(InputStream s)
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.

Copyright 2001-2005 The Apache Software Foundation.