01: /**
02: * InstantJ
03: *
04: * Copyright (C) 2002 Nils Meier
05: * Additional changes (C) 2002 Andy Thomas
06: *
07: * This library is free software; you can redistribute it and/or
08: * modify it under the terms of the GNU Lesser General Public
09: * License as published by the Free Software Foundation; either
10: * version 2.1 of the License, or (at your option) any later version.
11: *
12: * This library is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * Lesser General Public License for more details.
16: *
17: */package instantj.compile.pizza;
18:
19: import instantj.compile.Source;
20:
21: import java.io.IOException;
22: import java.io.InputStream;
23:
24: import net.sf.pizzacompiler.compiler.SourceReader;
25:
26: /**
27: * Source reader for instant source
28: */
29: /*package*/class InstantSourceReader extends SourceReader {
30:
31: /** the source */
32: private Source source;
33:
34: /**
35: * Constructor
36: */
37: /*package*/InstantSourceReader(Source set) {
38: source = set;
39: }
40:
41: /**
42: * @see instantj.compile.pizza.PizzaSourceCompiler#getInputStream(java.lang.String)
43: */
44: public InputStream getInputStream(String arg0) throws IOException {
45: return source.getInputStream();
46: }
47:
48: }
|