...
URL rulesXml = getClass().getClassLoader().getResource(path);
RuleSet ruleSet = new FromXmlRuleSet(rulesXml);
Digester digester = new Digester();
digester.setRules(new RegexRules(new SimpleRegexMatcher()));
digester.addRuleSet(ruleSet);
return digester;
No comments:
Post a Comment