1 package com.thaiopensource.xml.sax; 2 3 import org.xml.sax.SAXException; 4 import org.xml.sax.XMLReader; 5 6 /** 7 * A factory for <code>XMLReader</code>s. Thread-safety is determined by each particular 8 * implementation of this interface. 9 * 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 } 21