FileDocCategorySizeDatePackage
DigesterExample.javaAPI DocExample1822Wed May 18 09:39:02 BST 2005com.discursive.jccook.xml.bean

DigesterExample

public class DigesterExample extends Object

Fields Summary
private static Logger
logger
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] pArgs)

      LogInit.init(); 
        DigesterExample example = new DigesterExample();
        example.testDigest();
    
public voidtestDigest()


        List plays = new ArrayList();

        InputStream input = getClass().getResourceAsStream("./plays.xml");
        URL rules = getClass().getResource("./play-rules.xml");
        Digester digester = DigesterLoader.createDigester(rules);
        digester.push(plays);

        logger.debug("Number of plays: " + plays.size());