/** * Returns an enumeration describing the available options. * * @return an enumeration of all the available options. */ @Override public Enumeration<Option> listOptions() { Vector<Option> result = new Vector<Option>(); result.addElement(new Option("\tThe class index\n" + "\t(default: last)", "c", 1, "-c <class index>")); result.addAll(Collections.list(super.listOptions())); return result.elements(); }
/** * Returns an enumeration describing the available options. * * @return an enumeration of all the available options. */ @Override public Enumeration<Option> listOptions() { Vector<Option> result = new Vector<Option>(); result.addElement(new Option("\tThe class index\n" + "\t(default: last)", "c", 1, "-c <class index>")); result.addAll(Collections.list(super.listOptions())); return result.elements(); }
/** * Returns an enumeration describing the available options. * * @return an enumeration of all the available options. */ @Override public Enumeration<Option> listOptions() { Vector<Option> result = new Vector<Option>(); result.addElement(new Option("The class index", "c", 1, "-c <the class index>")); result.addAll(Collections.list(super.listOptions())); return result.elements(); }
/** * Returns an enumeration describing the available options. * * @return an enumeration of all the available options. */ @Override public Enumeration<Option> listOptions() { Vector<Option> result = new Vector<Option>(); result.addElement(new Option("\tThe class index\n" + "\t(default: last)", "c", 1, "-c <class index>")); result.addAll(Collections.list(super.listOptions())); return result.elements(); }
/** * Returns an enumeration describing the available options. * * @return an enumeration of all the available options. */ @Override public Enumeration<Option> listOptions() { Vector<Option> result = new Vector<Option>(); result.addElement(new Option("The class index", "c", 1, "-c <the class index>")); result.addAll(Collections.list(super.listOptions())); return result.elements(); }
/** * Returns an enumeration describing the available options. * * @return an enumeration of all the available options. */ @Override public Enumeration<Option> listOptions() { Vector<Option> result = new Vector<Option>(); result.addElement(new Option("\tThe class index\n" + "\t(default: last)", "c", 1, "-c <class index>")); result.addAll(Collections.list(super.listOptions())); return result.elements(); }
/** * Returns an enumeration describing the available options. * * @return an enumeration of all the available options. */ @Override public Enumeration<Option> listOptions() { Vector<Option> result = new Vector<Option>(); result.addElement(new Option("\tUse double precision format.\n" + "\t(default: single precision)", "double", 0, "-double")); result.addElement(new Option("\tUse tabs as separator.\n" + "\t(default: blanks)", "tabs", 0, "-tabs")); result.addAll(Collections.list(super.listOptions())); return result.elements(); }
/** * Returns an enumeration describing the available options. * * @return an enumeration of all the available options. */ @Override public Enumeration<Option> listOptions() { Vector<Option> result = new Vector<Option>(); result.addElement(new Option( "\tThe class index (first and last are valid as well).\n" + "\t(default: last)", "C", 1, "-C <class index>")); result.addElement(new Option("\tCompresses the data (uses '" + XRFFLoader.FILE_EXTENSION_COMPRESSED + "' as extension instead of '" + XRFFLoader.FILE_EXTENSION + "')\n" + "\t(default: off)", "compress", 0, "-compress")); result.addAll(Collections.list(super.listOptions())); return result.elements(); }
/** * Returns an enumeration describing the available options. * * @return an enumeration of all the available options. */ @Override public Enumeration<Option> listOptions() { Vector<Option> result = new Vector<Option>(); result.addElement(new Option("\tUse double precision format.\n" + "\t(default: single precision)", "double", 0, "-double")); result.addElement(new Option("\tUse tabs as separator.\n" + "\t(default: blanks)", "tabs", 0, "-tabs")); result.addAll(Collections.list(super.listOptions())); return result.elements(); }
/** * Returns an enumeration describing the available options. * * @return an enumeration of all the available options. */ @Override public Enumeration<Option> listOptions() { Vector<Option> result = new Vector<Option>(); result.addElement(new Option( "\tThe class index (first and last are valid as well).\n" + "\t(default: last)", "C", 1, "-C <class index>")); result.addElement(new Option("\tCompresses the data (uses '" + JSONLoader.FILE_EXTENSION_COMPRESSED + "' as extension instead of '" + JSONLoader.FILE_EXTENSION + "')\n" + "\t(default: off)", "compress", 0, "-compress")); result.addAll(Collections.list(super.listOptions())); return result.elements(); }
/** * Returns an enumeration describing the available options. * * @return an enumeration of all the available options. */ @Override public Enumeration<Option> listOptions() { Vector<Option> result = new Vector<Option>(); result.addElement(new Option( "\tThe class index (first and last are valid as well).\n" + "\t(default: last)", "C", 1, "-C <class index>")); result.addElement(new Option("\tCompresses the data (uses '" + XRFFLoader.FILE_EXTENSION_COMPRESSED + "' as extension instead of '" + XRFFLoader.FILE_EXTENSION + "')\n" + "\t(default: off)", "compress", 0, "-compress")); result.addAll(Collections.list(super.listOptions())); return result.elements(); }
/** * Returns an enumeration describing the available options. * * @return an enumeration of all the available options. */ @Override public Enumeration<Option> listOptions() { Vector<Option> result = new Vector<Option>(); result.addElement(new Option("\tCompresses the data (uses '" + ArffLoader.FILE_EXTENSION_COMPRESSED + "' as extension instead of '" + ArffLoader.FILE_EXTENSION + "')\n" + "\t(default: off)", "compress", 0, "-compress")); result.addElement(new Option( "\tThe maximum number of digits to print after the decimal\n" + "\tplace for numeric values (default: 6)", "decimal", 1, "-decimal <num>")); result.addAll(Collections.list(super.listOptions())); return result.elements(); }
/** * Returns an enumeration describing the available options. * * @return an enumeration of all the available options. */ @Override public Enumeration<Option> listOptions() { Vector<Option> result = new Vector<Option>(); result.addElement(new Option( "\tThe class index (first and last are valid as well).\n" + "\t(default: last)", "C", 1, "-C <class index>")); result.addElement(new Option("\tCompresses the data (uses '" + JSONLoader.FILE_EXTENSION_COMPRESSED + "' as extension instead of '" + JSONLoader.FILE_EXTENSION + "')\n" + "\t(default: off)", "compress", 0, "-compress")); result.addAll(Collections.list(super.listOptions())); return result.elements(); }
/** * Returns an enumeration describing the available options. * * @return an enumeration of all the available options. */ @Override public Enumeration<Option> listOptions() { Vector<Option> result = new Vector<Option>(); result.addElement(new Option("\tCompresses the data (uses '" + ArffLoader.FILE_EXTENSION_COMPRESSED + "' as extension instead of '" + ArffLoader.FILE_EXTENSION + "')\n" + "\t(default: off)", "compress", 0, "-compress")); result.addElement(new Option( "\tThe maximum number of digits to print after the decimal\n" + "\tplace for numeric values (default: 6)", "decimal", 1, "-decimal <num>")); result.addAll(Collections.list(super.listOptions())); return result.elements(); }
/** * generates a string suitable for output on the command line displaying all * available options. * * @param saver the saver to create the option string for * @return the option string */ protected static String makeOptionStr(AbstractFileSaver saver) { StringBuffer result; Option option; result = new StringBuffer(); // build option string result.append("\n"); result.append(saver.getClass().getName().replaceAll(".*\\.", "")); result.append(" options:\n\n"); Enumeration<Option> enm = saver.listOptions(); while (enm.hasMoreElements()) { option = enm.nextElement(); result.append(option.synopsis() + "\n"); result.append(option.description() + "\n"); } return result.toString(); }
/** * generates a string suitable for output on the command line displaying all * available options. * * @param saver the saver to create the option string for * @return the option string */ protected static String makeOptionStr(AbstractFileSaver saver) { StringBuffer result; Option option; result = new StringBuffer(); // build option string result.append("\n"); result.append(saver.getClass().getName().replaceAll(".*\\.", "")); result.append(" options:\n\n"); Enumeration<Option> enm = saver.listOptions(); while (enm.hasMoreElements()) { option = enm.nextElement(); result.append(option.synopsis() + "\n"); result.append(option.description() + "\n"); } return result.toString(); }
/** * Returns an enumeration describing the available options. * * @return an enumeration of all the available options. */ @Override public Enumeration<Option> listOptions() { Vector<Option> result = new Vector<Option>(); result.addElement(new Option("\tThe field separator to be used.\n" + "\t'\\t' can be used as well.\n" + "\t(default: ',')", "F", 1, "-F <separator>")); result.addElement(new Option("\tThe string representing a missing value.\n" + "\t(default: ?)", "M", 1, "-M <str>")); result.addElement(new Option("\tDon't write a header row.", "N", 0, "-N")); result.addElement(new Option( "\tThe maximum number of digits to print after the decimal\n" + "\tplace for numeric values (default: 6)", "decimal", 1, "-decimal <num>")); result.addAll(Collections.list(super.listOptions())); return result.elements(); }
/** * Returns an enumeration describing the available options. * * @return an enumeration of all the available options. */ @Override public Enumeration<Option> listOptions() { Vector<Option> result = new Vector<Option>(); result.addElement(new Option("\tThe field separator to be used.\n" + "\t'\\t' can be used as well.\n" + "\t(default: ',')", "F", 1, "-F <separator>")); result.addElement(new Option("\tThe string representing a missing value.\n" + "\t(default: ?)", "M", 1, "-M <str>")); result.addElement(new Option("\tDon't write a header row.", "N", 0, "-N")); result.addElement(new Option( "\tThe maximum number of digits to print after the decimal\n" + "\tplace for numeric values (default: 6)", "decimal", 1, "-decimal <num>")); result.addAll(Collections.list(super.listOptions())); return result.elements(); }