Revision 1688 tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/filters/TagSentences/TagSentencesXml.groovy

TagSentencesXml.groovy (revision 1688)
186 186
			
187 187
			writer.close()
188 188
			output.close()
189
			parser.close()
189
			if (parser != null) parser.close();
190
		if (inputData != null) inputData.close();
190 191
		} catch (Exception ex) {
191 192
			System.err.println(parser.getLocation().toString());
192 193
			ex.printStackTrace();
193 194
			
194 195
			writer.close()
195 196
			output.close()
196
			parser.close()
197
			if (parser != null) parser.close();
198
		if (inputData != null) inputData.close();
197 199
			return false;
198 200
		}
199 201

  

Also available in: Unified diff