Collection<Iterator<Document>> docIters =
new LinkedList<Iterator<Document>>();
if (argOptions.hasOption('f')) {
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));
}