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

compiler.groovy (revision 1688)
91 91
	public compiler(){}
92 92
	
93 93
	/**
94
	 * Instantiates a new compiler.
95
	 *
96
	 * @param url the url
97
	 * @param text the text
98
	 * @param base the base
99
	 * @param project the project
100
	 */
101
	public compiler(URL url,String text,String base, String project)
102
	{
103
		this.text = text
104
		this.base = base;
105
		this.project = project;
106
		this.textAttributes = textAttributes;
107
		try {
108
			this.url = url;
109
			inputData = url.openStream();
110
			
111
			factory = XMLInputFactory.newInstance();
112
			parser = factory.createXMLStreamReader(inputData);
113
		} catch (XMLStreamException ex) {
114
			System.out.println(ex);
115
		}catch (IOException ex) {
116
			System.err.println("IOException while parsing ");
117
		}
118
	}
119
	
120
	/**
121 94
	 * set the language of the corpus.
122 95
	 *
123 96
	 * @param lang the lang

Also available in: Unified diff