KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > util > xml > confix > test > XMLConsumerConfig


1 package org.sapia.util.xml.confix.test;
2
3 import org.jdom.input.SAXBuilder;
4 import org.sapia.util.xml.confix.XMLConsumer;
5 import org.xml.sax.InputSource JavaDoc;
6
7
8 /**
9  * @author Jean-Cedric Desrochers
10  *
11  * <dl>
12  * <dt><b>Copyright:</b><dd>Copyright &#169; 2002-2003 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt>
13  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
14  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
15  * </dl>
16  */

17 public class XMLConsumerConfig extends NestedConfig implements XMLConsumer {
18
19   public XMLConsumerConfig() {
20   }
21   
22     /**
23    * @see org.sapia.util.xml.confix.XMLConsumer#consume(org.xml.sax.InputSource)
24    */

25   public void consume(InputSource JavaDoc is) throws Exception JavaDoc {
26         SAXBuilder builder = new SAXBuilder();
27     _theConfigElement = builder.build(is).getRootElement();
28   }
29
30 }
31
Popular Tags