maxDocs = Integer.parseInt(line.getOptionValue("maxdocs"));
} catch (Exception e) {
maxDocs = 100;
}
FileDigester digester;
try {
Constructor<?> constructor = digesterClass.getConstructor(new Class[] { File.class });
digester = (FileDigester) constructor.newInstance(new Object[] { data });
digester.setCharset(chset);
digester.setMaxDocs(maxDocs);
} catch (Exception e) {
throw new RuntimeException("Invalid digester class.", e);
}
BoboIndexer indexer = new BoboIndexer(digester, FSDirectory.open(new File(output)));