for (String s : argOptions.getStringOption('f').split(","))
docIters.add(new BufferedFileListDocumentIterator(s));
}
if (argOptions.hasOption('d')) {
for (String s : argOptions.getStringOption('d').split(","))
docIters.add(new OneLinePerDocumentIterator(s));
}
if (docIters.size() == 0)
throw new IllegalStateException(
"Must specify at least one document source");