protected Reader getReader() throws BasicException {
InputStream in = BatchSentenceResource.class.getResourceAsStream(m_sResScript);
if (in == null) {
throw new BasicException(LocalRes.getIntString("exception.nosentencesfile"));
} else {
try {
return new InputStreamReader(in, "UTF-8");
} catch (UnsupportedEncodingException ex) {
throw new BasicException(LocalRes.getIntString("exception.nosentencesfile"), ex);
}
}
}