01: package org.kohsuke.rngom.xml.sax;
02:
03: import org.xml.sax.SAXException;
04: import org.xml.sax.XMLReader;
05:
06: /**
07: * A factory for <code>XMLReader</code>s. Thread-safety is determined by each particular
08: * implementation of this interface.
09: *
10: * @author <a href="mailto:jjc@jclark.com">James Clark</a>
11: */
12: public interface XMLReaderCreator {
13: /**
14: * Creates a new <code>XMLReader</code>.
15: *
16: * @return a new <code>XMLReader</code>; never <code>null</code>
17: * @throws org.xml.sax.SAXException If an <code>XMLReader</code> cannot be created for any reason
18: */
19: XMLReader createXMLReader() throws SAXException;
20: }
|