View Javadoc

1   package net.sf.tomp.xtcl.source;
2   
3   import net.sf.tomp.general.Parametrized;
4   import net.sf.tomp.xml.sax.ParametrizedXMLReader;
5   
6   import org.xml.sax.InputSource;
7   
8   import javax.xml.transform.sax.SAXSource;
9   
10  /***
11   * DOCUMENT ME!
12   * 
13   * @author tomp
14   */
15  public class XTSAXSource extends SAXSource implements Parametrized {
16      /*** DOCUMENT ME! */
17      protected ParametrizedXMLReader xmlReader;
18  
19      /***
20       * Creates a new XTSAXSource object.
21       * 
22       * @param r DOCUMENT ME!
23       * @param is DOCUMENT ME!
24       */
25      public XTSAXSource(ParametrizedXMLReader r, InputSource is) {
26          super(r, is);
27          xmlReader = r;
28      }
29  
30      //    protected Map params = new HashMap();
31      public void setParameter(String k, Object v) {
32          xmlReader.setParameter(k, v);
33      }
34  
35      /*
36       * public XMLReader getXMLReader() { return xmlReader; }
37       */
38  }
39  
40  /*
41   * The contents of this file are subject to the Mozilla Public License Version
42   * 1.1 (the "License"); you may not use this file except in compliance with the
43   * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
44   * Software distributed under the License is distributed on an "AS IS" basis,
45   * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
46   * the specific language governing rights and limitations under the License. The
47   * Original Code is: all this file. The Initial Developer of the Original Code
48   * is: Tomas Pitner, Masaryk University in Brno, Czech Republic. Contributor(s):
49   */