protected InputStream inputStream;
@Override
protected void makeOptions(Parameterization config) {
// Add the input file first, for usability reasons.
final FileParameter inputParam = new FileParameter(INPUT_ID, FileParameter.FileType.INPUT_FILE);
if(config.grab(inputParam)) {
try {
inputStream = new FileInputStream(inputParam.getValue());
inputStream = FileUtil.tryGzipInput(inputStream);
}
catch(IOException e) {
config.reportError(new WrongParameterValueException(inputParam, inputParam.getValue().getPath(), e));
inputStream = null;
}
}
super.makeOptions(config);
}