01: //$Id: RSSFactory.java,v 1.1 2004/03/28 13:07:16 taganaka Exp $
02: package org.gnu.stealthp.rsslib;
03:
04: import javax.xml.parsers.*;
05:
06: /**
07: * RSS Factory.
08: *
09: * <blockquote>
10: * <em>This module, both source code and documentation, is in the
11: * Public Domain, and comes with <strong>NO WARRANTY</strong>.</em>
12: * </blockquote>
13: *
14: * @since RSSLIB4J 0.2
15: * @author Francesco aka 'Stealthp' stealthp[@]stealthp.org
16: * @version 0.2
17: */
18:
19: public class RSSFactory {
20:
21: private static SAXParserFactory factory;
22:
23: protected static SAXParserFactory getInstance() {
24: if (factory == null)
25: factory = SAXParserFactory.newInstance();
26: return factory;
27: }
28: }
|