
final InputStream is = Tools.class.getResourceAsStream(filename);
</BUG>
if (is == null) {
<BUG>throw new IOException("Could not load file from classpath : " + filename);
</BUG>
}
return is;
}
public static void selectRules(final JLanguageTool lt, final String[] disabledRules, final String[] enabledRules) {

final StringWriter sw = new StringWriter();
final PrintWriter pw = new PrintWriter(sw);
e.printStackTrace(pw);
return sw.toString();
}
public static InputStream getStream(final String path) throws IOException {
final InputStream is = Tools.class.getResourceAsStream(path);
if (is == null) {
throw new IOException("Could not load file from classpath: '" + path + "'");
}
return is;
}
public static void selectRules(final JLanguageTool lt, final String[] disabledRules, final String[] enabledRules) {
