View Javadoc

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   * The contents of this file are subject to the Mozilla Public License Version
30   * 1.1 (the "License"); you may not use this file except in compliance with the
31   * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
32   * Software distributed under the License is distributed on an "AS IS" basis,
33   * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
34   * the specific language governing rights and limitations under the License. The
35   * Original Code is: all this file. The Initial Developer of the Original Code
36   * is: Tomas Pitner, Masaryk University in Brno, Czech Republic. Contributor(s):
37   */