/** * Gets the current settings of the result producer. * * @return an array of strings suitable for passing to setOptions */ @Override public String[] getOptions() { String[] seOptions = new String[0]; if ((m_ResultProducer != null) && (m_ResultProducer instanceof OptionHandler)) { seOptions = ((OptionHandler) m_ResultProducer).getOptions(); } String[] options = new String[seOptions.length + 8]; int current = 0; if (!getCacheKeyName().equals("")) { options[current++] = "-F"; options[current++] = getCacheKeyName(); } if (getResultProducer() != null) { options[current++] = "-W"; options[current++] = getResultProducer().getClass().getName(); } options[current++] = "--"; System.arraycopy(seOptions, 0, options, current, seOptions.length); current += seOptions.length; while (current < options.length) { options[current++] = ""; } return options; }
/** * Gets the current settings of the result producer. * * @return an array of strings suitable for passing to setOptions */ @Override public String[] getOptions() { String[] seOptions = new String[0]; if ((m_ResultProducer != null) && (m_ResultProducer instanceof OptionHandler)) { seOptions = ((OptionHandler) m_ResultProducer).getOptions(); } String[] options = new String[seOptions.length + 8]; int current = 0; if (!getCacheKeyName().equals("")) { options[current++] = "-F"; options[current++] = getCacheKeyName(); } if (getResultProducer() != null) { options[current++] = "-W"; options[current++] = getResultProducer().getClass().getName(); } options[current++] = "--"; System.arraycopy(seOptions, 0, options, current, seOptions.length); current += seOptions.length; while (current < options.length) { options[current++] = ""; } return options; }