ObjectStream<String> lineStream;
try {
lineStream = new PlainTextByLineStream(new InputStreamReader(
CmdLineUtil.openInFile(new File(params.getData())), params.getEncoding()));
return new NameSampleDataStream(lineStream);
} catch (UnsupportedEncodingException e) {
System.err.println("Encoding not supported: " + params.getEncoding());
throw new TerminateToolException(-1);
}
}