Revision 1688 tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/importer/discours/compiler.groovy

compiler.groovy (revision 1688)
89 89
	}
90 90

  
91 91
	/**
92
	 * Instantiates a new compiler.
93
	 *
94
	 * @param url the url
95
	 * @param text the text
96
	 * @param base the base
97
	 * @param project the project
98
	 */
99
	public compiler(URL url,String text,String base, String projectName) {
100
		this.text = text
101
		this.base = base;
102
		try {
103
			this.url = url;
104
			inputData = url.openStream();
105

  
106
			factory = XMLInputFactory.newInstance();
107
			parser = factory.createXMLStreamReader(inputData);
108
		} catch (XMLStreamException ex) {
109
			System.out.println(ex);
110
		}catch (IOException ex) {
111
			System.err.println("IOException while parsing ");
112
		}
113
	}
114

  
115
	/**
116 92
	 * set the language of the corpus.
117 93
	 *
118 94
	 * @param lang the lang

Also available in: Unified diff