1 package net.sf.tomp.xtcl.source;
2
3 import org.xml.sax.InputSource;
4
5 import javax.xml.transform.sax.SAXSource;
6
7 /***
8 * Creates either a normal SAXSource or XTSAXSource which is parametrized.
9 *
10 * @author tomp
11 */
12 public interface XTSourceFactory {
13 /***
14 * Creates either a normal SAXSource or XTSAXSource which is parametrized.
15 *
16 * @param className class name of XMLReader used to create the SAXSource
17 * @param is InputSource to be read by the XMLReader
18 * @return the SAXSource or XTSAXSource
19 * @throws ClassNotFoundException
20 * @throws InstantiationException
21 * @throws IllegalAccessException
22 */
23 SAXSource newSAXSource(String className, InputSource is)
24 throws ClassNotFoundException, InstantiationException,
25 IllegalAccessException;
26 }
27
28
29
30
31
32
33
34
35
36
37