/** * Parses the options for this object. * * <p> * <!-- options-start --> * Valid options are: * * <p> * * <pre> -i <the input file> * The input file</pre> * * <pre> -o <the output file> * The output file</pre> * * <pre> -c <class index> * The class index * (default: last)</pre> * * <!-- options-end --> * * @param options the options to use * @throws Exception if setting of options fails */ public void setOptions(String[] options) throws Exception { String tmpStr; tmpStr = Utils.getOption('c', options); if (tmpStr.length() != 0) setClassIndex(tmpStr); else setClassIndex("last"); super.setOptions(options); }
/** * Parses the options for this object. * * <p> * <!-- options-start --> * Valid options are: * * <p> * * <pre> * -i <the input file> * The input file * </pre> * * <pre> * -o <the output file> * The output file * </pre> * * <pre> * -c <class index> * The class index * (default: last) * </pre> * * <!-- options-end --> * * @param options the options to use * @throws Exception if setting of options fails */ @Override public void setOptions(String[] options) throws Exception { String tmpStr; tmpStr = Utils.getOption('c', options); if (tmpStr.length() != 0) { setClassIndex(tmpStr); } else { setClassIndex("last"); } super.setOptions(options); Utils.checkForRemainingOptions(options); }