/** * Gets the current settings of the filter. * * @return an array of strings suitable for passing to setOptions */ @Override public String[] getOptions() { Vector<String> result = new Vector<String>(); result.add("-E"); result.add("" + getExpression()); if (m_filterAfterFirstBatch) { result.add("-F"); } Collections.addAll(result, super.getOptions()); return result.toArray(new String[result.size()]); }
/** * Gets the current settings of the filter. * * @return an array of strings suitable for passing to setOptions */ @Override public String[] getOptions() { Vector<String> result = new Vector<String>(); result.add("-E"); result.add("" + getExpression()); if (m_filterAfterFirstBatch) { result.add("-F"); } Collections.addAll(result, super.getOptions()); return result.toArray(new String[result.size()]); }