On 02/04/2014 06:10 PM, [email protected] wrote:
public BioNLP2004NameSampleStream(InputStream in, int types) {
try {
- this.lineStream = new PlainTextByLineStream(in, "UTF-8");
+ this.lineStream = new PlainTextByLineStream(new MockInputStreamFactory(in),
"UTF-8");
System.setOut(new PrintStream(System.out, true, "UTF-8"));
- } catch (UnsupportedEncodingException e) {
+ } catch (IOException e) {
// UTF-8 is available on all JVMs, will never happen
throw new IllegalStateException(e);
}
All these streams need to be changed as well, the InputStream in has to
be deprecated and a new
constructor taking the InputStreamFactory needs to be added.
I suggest that we revert all these changes, and instead just add new
constructor.
Jörn